Skip to main content

Posts

Showing posts with the label Automatic SMS Verification with the SMS Retriever API

Automatic SMS Verification with the SMS Retriever API

With the SMS Retriever API, you can perform SMS-based user verification in your Android app automatically, without requiring the user to manually type verification codes, and without requiring any extra app permissions. When you implement automatic SMS verification in your app, the verification flow looks like this: A user initiates SMS verification in your app. Your app might prompt the user to provide a phone number or use the  Smart Lock for Passwords hint selector  if that information wasn't required to create the user's account.Your app makes a request to your server to verify the user's phone number. Depending on what information is available in your user database, this request might include the user's ID, the user's phone number, or both.At the same time, your app calls the SMS Retriever API to begin listening for an SMS response from your server.Your server sends an SMS message to the user that includes a one-time code to be sent back to your server, and a...