Question

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?

Was it helpful?

Solution 2

Flow for MSG verification is:

  1. User sent a request for a verification over a particular mobile number.
  2. Server sends an SMS to that mobile number with verification code, along with device IMEI number sent by the phone while asking for verification [Must be encrypted].
  3. SMS broadcast receiver receives an incoming SMS checks if it's type and if it's an verification SMS, Decrypt the contents, validates the IMEI number, gets the verification number and sends this verification number back to the server.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top