Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

use emulator with android firebase sms authentication

I'm using Firebase authentication service to authenticate users using SMS.

I read on Firebase documentation that :

Also, note that phone number sign-in requires a physical device and won't work on an emulator.

The question is how do I continue to develop using the emulator without the verification? How do i force authentication or any other method to continue development ?

like image 806
AndroidDeveloper Avatar asked Aug 29 '17 06:08

AndroidDeveloper


People also ask

Is Firebase SMS verification free?

Luckily, Firebase phone authentication offers such a system for Android and iOS, along with free quota for SMS verification messages (10,000 free per month).

Can we send OTP using Firebase?

Stay organized with collections Save and categorize content based on your preferences. You can use Firebase Authentication to sign in a user by sending an SMS message to the user's phone. The user signs in using a one-time code contained in the SMS message.

Can we use Firebase without authentication?

No Firebase Authentication…To use the Firebase Storage we need to authenticate a user via Firebase authentication. The default security rules require users to be authenticated. Firebase Storage is basically a powerful and simple object storage, in which you can store your files easily.


1 Answers

Yes. It is possible but only with testing phone numbers.

Go to your

firebase console -> Authentication -> SIGN-IN Method -> Phone

and check the "Phone numbers for testing (optional)" field.

Firebase Console

like image 98
Prasanna Anbazhagan Avatar answered Oct 19 '22 02:10

Prasanna Anbazhagan