简体   繁体   中英

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

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:

  • 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%.

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.

在此处输入图像描述

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.

It's impossible to change sender name, but you can change template:

Go to Firebase console -> Authentication -> Templates -> SMS Verification

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM