user1239393
user1239393

Reputation: 125

Android mobile number verification process

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

Upvotes: 5

Views: 6920

Answers (4)

Usman Riaz
Usman Riaz

Reputation: 3020

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.

Upvotes: 0

GoRoS
GoRoS

Reputation: 5375

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.

Upvotes: 0

Lucifer
Lucifer

Reputation: 29632

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.

Upvotes: 2

rekire
rekire

Reputation: 47945

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

Upvotes: 0

Related Questions