Reputation: 3313
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
Upvotes: 13
Views: 28327
Reputation: 12539
As for now, We simply can't change the template nor sender name/number. We can only see in which template user will get SMS.
Additional Info:
Upvotes: 18
Reputation: 1606
This is the response I got from Firebase support team as of March 19, 2021.
Upvotes: 12
Reputation: 1117
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.
Upvotes: 13
Reputation: 1976
hi am also using firebase messages for send otp on mobile numbers. I also want to show my app name in text message but there is a firebase document that you can't change body of message in firebase. You can select the language from the Firebase console, however this is a per project setting and you can't modify the templates.
Upvotes: 0
Reputation: 61
Go to Firebase>Authentication>Templates>Password Reset> Put %APP_NAME%
Upvotes: -4