'How to configure %APP_NAME% in firebase app?

I configured the phone authentication service However when i receive the SMS it displays something atrocious.

I get something like "firebase-production.app..."

How to fix it ?



Solution 1:[1]

According to Firebase Help, to change the APP_NAME you can change the Public-facing name field on the Settings page.

enter image description here

Solution 2:[2]

For Android and iOS, the App store and Play store name are used as those are already vetted before release. If this is a web app, the page's domain name is used as the app name. The reason is because this is the only verifiable identifier associated with the web app. The same thing is used for OAuth redirects. When you sign in with Google to your app, the user would see a message: Continue to www.example.com.

If you are using Firebase hosting, you can switch to using custom domains. Using the project name is insecure as anyone can set any name on an app. I could create a Firebase project and call it Google. Nothing can stop me from doing so.

Solution 3:[3]

Though you cannot change the template, you can change the name of the app from something like xxxxxx.firebaseapp.com to your App name.

For this, you need to go to your Project Settings on Firebase console and under App Check tab make sure to register your apps. Just click on your app to enable SafetyNet for Android.

If you've already filled in all the information for iOS, your app should already be registered.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 shahsani
Solution 2 bojeil
Solution 3 Lightwaxx