fayaz07 / flutter_firebase

Implementing features of firebase with flutter
92 stars 67 forks source link

Authentication is not working on android emulator. #6

Closed naveenbathina9 closed 4 years ago

naveenbathina9 commented 4 years ago

Hi Fayaz,

Thanks for the great efforts, I have cloned your code and handled all configurations in code. I'm running/debugging on android emulator. I'm able to enter phone number, otp. Once I enter otp and click on submit. I'm getting an error # line number 106 of file code.dart (FireBase.auth .signInWithCredential(_authCredential)). I don't know what is the issue. Is it working on your end?

fayaz07 commented 4 years ago

Hi Naveen, actually I haven't checked it for long time, usually the firebase sdk keep on changing. When I checked it for last time it was working, if you use the same sdk version of firebase auth it might work perfectly, however I will have a look into it.

Thanks

fayaz07 commented 4 years ago

Remember that phone auth only works in real device, but not in emulator

naveenbathina9 commented 4 years ago

Thanks for the reply. I sorted out the issue. It is working as expected on emulator.

Fix is : should have to generate sha keys and update in firebase. We have to update both keys.

On Wed, 8 Apr, 2020, 12:19 PM Mohammad Fayaz, notifications@github.com wrote:

Remember that phone auth only works in real device, but not in emulator

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fayaz07/flutter_firebase/issues/6#issuecomment-610783221, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB542PT7NQPZA4N5RR6WW3RLQNAFANCNFSM4MDPJ26A .