firebase phone auth sms contains extra characters not present in template

Viewed 868

Used Firebase Phone Auth in my Android app. The sms contains extra characters ntEc9wgP0/J at the end of the template.

Tried setting FirebaseAuth.getInstance().setLanguageCode("en")

Template language is set to English in Firebase console. What can be the reason behind this?

This is my sms code template in firebase console.

%LOGIN_CODE% is your verification code for %APP_NAME%.

Firebase Phone Auth itself is working absolutely fine. What am I missing here?

EDIT : image of problem

EDIT2 : how it should be

1 Answers

I also faced the same issue in my case auto retrieval hash was only coming when otp sms length was below 53 characters so i contacted firebase support team regarding this .

As per firebase support team "If this is Android traffic then this is the appended auto-retrieval hash. We use the SMS Retriever API . So this extra characters are expected because these are the auto-retrieval hash"

** To Increase the character length you can change your app name on the google console.

Related