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