Skip to content

Instantly share code, notes, and snippets.

@robertoallende
Last active October 23, 2019 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertoallende/11ce8540bc06c9f335c84aaec3b55474 to your computer and use it in GitHub Desktop.
Save robertoallende/11ce8540bc06c9f335c84aaec3b55474 to your computer and use it in GitHub Desktop.
Request SMS Verification in an Android App

The docs to get App Hash in Android are broken (Oct 2019). Here's a short collection of urls to solve the problem.

According to documentation, you have to use keytool to get the App Hash

To get Request SMS Verification in an Android App https://developers.google.com/identity/sms-retriever/request https://developers.google.com/identity/sms-retriever/verify

But it's wrong! the right answer is explained here: https://medium.com/@nitheeshkpai/auto-fetch-otp-without-sms-read-permission-in-android-21880a22c689

And the source code is at: https://raw.githubusercontent.com/chintandesai49/SMSRetrieverAPIDemo/master/app/src/main/java/com/example/chintan/smsretrieverapidemo/AppSignatureHelper.java

Pending excercise, to use keytool to get exactly the same hash that the source code gets.

Stackoverflow question to answer: https://stackoverflow.com/questions/53908267/google-sms-retriever-api-not-retreiving-sms-messages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment