I'm using Firebase Phone Auth to identify the user, the sms is received but I need to change the SMS sender name (Not the template) in mobile, is there anyway to change the sender name or the messaging service? The sms is received like:
Phonecode
106109 is your verification code for MyAppName
what I need is:
MyAppName
106109 is your verification code MyAppName
In official firebase documents, they have not mentioned changing SMS templates, so this is not possible to change.
Create fictional phone numbers and verification codesIn the Firebase console, open the Authentication section. In the Sign in method tab, enable the Phone provider if you haven't already. Open the Phone numbers for testing accordion menu. Provide the phone number you want to test, for example: +1 650-555-3434.
the app name displayed in the SMS can't be changed manually (neither can you modify the template).
The app name is retrieved from the play store/app store once the app is live in the store.
This wasn't 100% clear to me after reading Rumit's answer.
here is the response from the firebase support about this matter:
The SMS messages draw the app's name from the App Store / Play Store. Once an app is published, the correct name should start appearing. There may be a small delay (a week or two at most). So, this is an expected behavior if you published the app a few days ago.
But if the app is published and you are still not able to see the app's name, it's possible that someone else has registered the user's App's Application ID (Usually the same as the Package Name - for instance, com.example.myapp) on the Play Store with a different name (which is the name shown as the %APP_NAME% value on the SMS template). Firebase pulls %APP_NAME% from the Play Store based on this Application ID.
Since Application IDs in Google Play must be unique, you can't use an ID that is already taken by someone else.
To fix this, you can change your Application ID and register the new one in the package name field in the Firebase Console.
This is the response I got from Firebase support team as of March 19, 2021.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With