Khalid Taha
Khalid Taha

Reputation: 3313

Firebase SMS Verification change sender name

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

Answers (5)

Rumit Patel
Rumit Patel

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.

enter image description here

Additional Info:

  • Until your app gets live, your format will be *%LOGIN_CODE% is your verification code.
  • After upload app on google-play-store, format will be %LOGIN_CODE% is your verification code for %APP_NAME%.

Upvotes: 18

Sethuraman Srinivasan
Sethuraman Srinivasan

Reputation: 1606

This is the response I got from Firebase support team as of March 19, 2021.

enter image description here

Upvotes: 12

hannojg
hannojg

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

Sandeep Malik
Sandeep Malik

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

Reymand
Reymand

Reputation: 61

Go to Firebase>Authentication>Templates>Password Reset> Put %APP_NAME%

Upvotes: -4

Related Questions