Android mobile number verification process

2019-06-22 08:39发布

I need help from you all in Android mobile number verification process. I have an application, Where the user enters his mobile number. I need to verify that the user has entered his own mobile number and not someone else mobile number in that application. How can i achieve that. Any ideas will be of great help. I am very much confused in how to verify the user input.

looking forward for your replies.

Thanks

4条回答
甜甜的少女心
2楼-- · 2019-06-22 08:46

A simple way is to send a SMS to that number. And ask for a transmitted token.

查看更多
对你真心纯属浪费
3楼-- · 2019-06-22 08:57

You can try sending sms from user's mobile phone to himself and send a code and also save this code in preferences. Ask user to input this code into your application then compare that code with the one that you saved in preferences earlier (original). if both matches, then mobile number varified.

查看更多
来,给爷笑一个
4楼-- · 2019-06-22 09:01

Another way economic way for the platform would be to send a simple SMS from the mobile to the same MSISDN with a random token. If the device receives the token the verification will succeed, otherwise it won't.

When I meant "economic" it is because the customer incurs the expenses of the SMS and not our platform. Thus, we avoid to pay attention to massive or distributed registration attacks and the cost of all those SMS's.

查看更多
ら.Afraid
5楼-- · 2019-06-22 09:04

Answer would be very easy. You can try the same logic of Mobile Banking Process. See the Steps,

  • Register Number via web site.
  • Now Send a random number to that Entered Mobile Number.
  • Now comes verification point, create a page that accept the random number sent as sms on that particular Mobile.
  • If both random number are same then that is valid mobile number, else not.
查看更多
登录 后发表回答