user2638180
user2638180

Reputation: 1023

Is it possible to change the sms verification message of Firebase?

In my Android app several languages uses sms verification from firebase.

In the app several languages can be selected in order to set the app in the selected language.

It would be a nice bonus if it where possible to, apart from making the request to firebase, pass to it a parameter that depending on it would return a sms in the same language that this parameter indicates.

But I cannot even find any reference to start with, it seems non-existent.

Is there some way to do that?

Upvotes: 1

Views: 4856

Answers (1)

Levi Moreira
Levi Moreira

Reputation: 12005

If you go in Authentication in the Firebase console you'll see this: enter image description here

Here you can see the template for the SMS message sent, including templates for different languages. The locale will be decided by the sdk in the user's phone. As per the docs:

The SMS message sent by Firebase can also be localized by specifying the auth language via the setLanguageCode method on your Auth instance.

FirebaseAuth.getInstance().setLanguageCode("fr");

This is also valid for the email messages.

Upvotes: 4

Related Questions