I am trying to implement sms retriever api to read OTP code message without having to add read_sms permission.
The help doc here, ask user to generate hash code specific to app.
I have generated the code as required but still
<action android:name="com.google.android.gms.auth.api.phone.SMS_RETRIEVED"/>
broadcast receiver is not firing up.
How can I debug this?
I am testing this by sending a SMS from one mobile to another and I am following the SMS requirement as specified in the document above.
Also, There are various methods mentioned to generated hash code. I have tried them all. Problem is each method generated different hash.
I have tried for both debug and release keystore.
Here are those various methods:
- linux command as describe here - help doc
- sms_retriever_hash_v9 file as described here
- By including AppSignatureHelper from sample app.