Search code examples
androidfirebasefirebase-authenticationgoogle-play-console

Firebase PhoneAuthentication OTP not showing APP NAME correctly


I have the app deployed on the play store. The SHA1 and SHA256 are added in the firebase project settings. I'm using phone authentication to receive the OTP for the app. The message comes in the following format:

123456 is your verification code for APP_NAME.
LghSMNBa+V

Why is the random sting appearing? The code gets verified and it works fine but I don't want the random string to be sent along with the message.


Solution

  • Finally, I received a response from the Firebase Team. It was as follows:

    Thanks for reaching out! This is Estefani and I’ll take care of this case.

    On some devices, Google Play services can automatically detect the incoming verification SMS and perform verification without user action. This uses the SMS Retriever API, which includes an 11 character hash at the end of the SMS message. Unfortunately, it is not possible to change this behavior and the only thing I could do is submit a feature request on your behalf so this behavior can be removed, but even if I do there is no way to tell if it is going to be implemented or not and even if it gets accepted it may take time to be completed.