Firebase Android Auth object no callbacks firing

房东的猫 提交于 2019-12-05 01:03:26

Got it working only on a real android device, but had no lucky with the emulator.

For the device, you'll need to add the following dependency in your app gradle file:

compile 'com.google.android.gms:play-services-auth:9.0.2'

I haven't tested, but it seems that if you update the emulator image with a newer google play services, it also should work.

Hope it helps.

Solved it thanks to @feroult post and other resources. In my case OnCompleteListener was never called after I updated the build.gradle with the new version of Play Services Library and Firebase libraries. The solution is to update the Play Services App installed on the Emulator.

In my case it started working with 11.0.4 version of Play services library and 11.3.02 version of Play Services app installed on Emulator.

It seems like the issue is caused by certain emulators not supporting the latest versions of Google Play Services! (You will see an error in logcat) Galaxy Nexus 5x API 23 w/ Google APIs seem to work with logins.

I had the same issue and eventually in my case i forgot enable it in firebase console

On a physical device, I did need to update Google Play Services in order to get the callback to work

I had the same problem here, and the solution was very simple: stop using the emulator and start using a physical device to test the application. I don't know why, but it seems like the emulator has some problems dealing with firebase :/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!