Android mobile number verification process

为君一笑 提交于 2020-01-03 11:32:14

问题


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


回答1:


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.



回答2:


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




回答3:


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.




回答4:


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.



来源:https://stackoverflow.com/questions/9511217/android-mobile-number-verification-process

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!