Reputation: 2621
I am trying to make an app which requires WhatsApp like validation of number, as heard from many people I sent a SMS from the same number to same number and check if the number is same and in message I sent a hashid generated from number and IMEI number and send the same to Server.
Now when the use receives the SMS and put the hashid on an input field and it got stored to Shared Preference and sent to server to match.
Is this the right way and same way WhatsApp doing?
Upvotes: 0
Views: 2088
Reputation: 604
Flow for MSG verification is:
Upvotes: 1
Reputation: 14810
See these links
SMS registration like in the mobile app: whatsapp
How to verify the phone number similar to Whatsapp?
As it says
Send the phone number to be verified, receive a unique hash. The verification system sends a unique code to the user. Once the user passes that code to your application, the original hash and the code are sent to the verification system to be validated.
Upvotes: 2