Auto-detecting verification code of firebase auth is not working

1.4k Views Asked by At

I am working on an flutter app that requires to verify users mobile number by sending an OTP. I am using Firebase phone authentication for this purpose. Everything working fine till I upload the app to play store. After uploading the app to the play store the SMS auto retrieve feature is no longer working.(the SMS doesn't contain the 11 digit hash key after uploading to play store).

below requirements are fulfilled

  • adding the sha-1 and sha-256 key from google play app-signing in play console
  • enable device check API in cloud console
  • enable mobile authentication in Firebase console

Any help is greatly appreciated as I am searching for this issue from last 2 day without any result.

2

There are 2 best solutions below

0
Sartaj Roshan On

Try using these versions #firebase_core: "^0.7.0" and #firebase_auth: "^0.20.1"

2
Pip On

(editing to clarify per suggestion) If your app has not yet been reviewed in the Play Store, the SMS message will include the full package name (instead of your app name) with the additional string of "(unreviewed)". Depending on the length of your package name, this can effect the SMS message size and possibly truncate it to not include the 11 char hash at the end of the SMS, which is required for auto-complete to function.