-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Authentication hangs with FB and Google login #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey, thanks for playing with FirebaseUI so quickly after the announcement! Do you see any errors in the advanced logs around the time you attempt this? If you wish to attempt to debug, the code for this activity is in AuthenticationMethodPicker. If you are physically at I/O, I'd love to meet and help you diagnose the issue in person. If not, we can continue to correspond here. |
Hey, I'm not quite sure what you mean by "advanced logs"? Could you point me to some doc to where I can figure out how to access more logging / turn on more logging for this? Here's a video what's happening when I press the FB login: There seems to be a lot going on but somehow it hangs at the very end. Interestingly, when I tried with Google again I get this message to the logcat: I keep seeing these errors in the log: But I'm not 100% if this is related or not. I'm not able to see much from the console as there seems to be some issues with it right now. The auth part should be correct though (I double checked). For the database side I only see: Which makes me wonder if something failed in the import process from the old data. Sorry, I know the information is very fragmented. I'm just not sure which is relevant and which isn't. Thank you for your help, much appreciated! |
I get similar hangs. With FB login, I get: With Google and Email Auth it just crashes and gives me: Any pointers? |
@JuhaniLehtimaeki apologies, I typed that message quickly on my phone, "advanced logs" was "adb logs" prior to autocorrect mangling :) Based on your video, my speculation would be that the interaction with the Facebook SDK is failing for some reason, resulting in a callback to onFailure, which does not dismiss the loading dialog. I'll attempt to verify this, but you might be faster to verify it yourself by adding a call to I could also be wrong about this; the error you are seeing in the Firebase dashboard for Database has me concerned that there may be some general configuration error with your project after import. I'll find you a contact who knows more about this part of the toolchain who can help. @Queskr, the error logs from DynamiteModule are frustrating but not related to the issue you're experiencing, however the error message for the failure to connect to the Firebase Auth service is much more relevant - it looks like your device has not yet updated to the latest Play Services, or you are running on an emulator without Play Services installed. Could you confirm if your device has play services 9.0+? A quick way to do this is using the package manager via adb:
This will output one or more blocks of version info; look for the one titled "Packages" (not "Hidden system packages") and check that you see Regardless of this, we should do a better job of handling these kinds of errors within FirebaseUI to provide better diagnostics. Sorry for the inconvenience, we intent to rapidly iterate on this library over the next month, so all feedback is incredibly useful to us. |
I've upgraded and I can see Google Play Services 9.0.83 under Settings->Apps->App Manager->Google Play Services. I still get the same messages for FB which still hangs. Any pointers? Should I just drop the UI package and move to manual authentication? Was this method tested? Does it work? |
@JuhaniLehtimaeki your database itself is not really modified when you import the project. Can you try to refresh the database screen? Sometimes you get signed out and a refresh would fix that. If it doesn't fix it, can you check the JavaScript console for details about the error? |
You mean the DB screen at the new Firebase Console? Did that, didn't change anything :( Guys, thanks for the assistance. I really appreciate it. |
@Queskr the last response from @puf was directed at @JuhaniLehtimaeki's earlier question about the firebase database console (see here). Sorry for the confusion, looks like we have two potentially distinct issues happening that are being covered in this same issue. As for testing, yes, we tested FB / Google / Email Sign-in and account linking between them prior to this release. It's interesting that you still see the error "InternalFirebaseAuth.FIREBASE_AUTH_API is not available on this device" despite having 9.0.83 of play services. I'll speak to the engineers responsible for the Firebase v2 implementation in Play Services to see if they have any hypothesis as to why this would happen; I don't think what you are seeing is a problem with FirebaseUI, but rather with the underlying Firebase APIs it is built upon. If you could email me direct so I have your contact details we may be able to get some additional information from our backend logs for your device and Firebase project ID. |
Opened issue #124 to deal with the loading dialog not being dismissed correctly if auth fails. |
@iainmcgin @puf Thanks for the help guys! Looks like the issues were unrelated. I talked to someone on the Slack channel who had the same issue with the console. It seems that my initial import did fail and the project got imported only partially. I deleted the imported one and reimported the project and everything now works on the console. That didn't fix the original issue though but I think you already found the problem so we're good. |
Should I open a new issue or continue using this one? Still, both Goole and FB logins hangs and give me the below two errors:
When trying to auth with mail, it actually crashes:
|
Hi, I am facing the same issues as @Queskr, the UI hangs on Loading progress bar and same error "E/GmsClient: unable to connect to service: com.google.firebase.auth.api.gms.service.START on com.google.android.gms" is logged in the logcat. Google Play Services 9.0.83 is installed on my phone. I am using a Samsung Galaxy S6 running marshmallow to test this (if that helps). However, no such issues are faced when I run it on a Moto G (3rd gen) device running marshmallow or on a Nexus 5X Emulator I also posted a question regarding this issue on stackoverflow http://stackoverflow.com/questions/37362970/firebaseui-for-android-gives-error-on-real-device |
Hello, I'm encountering a similar issue using the uiAuth for Email and Google providers. The email provider part works fine, but when clicking on the 'Sign in with Google' button, the "Loading..." dialog keeps showing on my release version (in the debug version this works fine). The signed APK uses an imported Firebase project (imported during the Google I/O into the new Firebase console) and has the relevant SHA1 set. The debug version APK is signed using the debug keystore and works on a seperate 'debug' Firebase project (using the SHA1 from the debug keystore) and is created from scratch in the new Firebase console. |
@peterhav you mentioned migrating the release version, have you moved the Client ID (SHA/package name) from the previous Google Cloud project into the appropriate Firebase project? If not, go to the Credentials page of the Cloud Console for your project and delete the Android Client ID, then add that SHA1 and Package Name to your Firebase project so it is the new owner. |
Hi @samtstern, I migrated and manually added the package name and SHA1 to the Firebase project. I did not remove the old credentials from the Cloud Console: I will try this later today and post the results in this thread. |
Any updates on the issue "E/GmsClient: unable to connect to service: com.google.firebase.auth.api.gms.service.START on com.google.android.gms" when trying to sign in with google? |
I logged into the Cloud Console and removed any Android Client ID's related to this app. Unfortunately this did not help... |
I suggest removing the progress dialog altogether. Google/email signin shows an account picker, facebook shows its own progress dialog/activity/whatever. Having another progress dialog in the background is redundant. |
I have the same issue in which the loading dialog is not dismiss. I try to login using Facebook account. Here is the log.
I read through the issues chain and change everything possible including the latest version of google play service 9.0.2. Here is my dependencies:
I run the application on Nexus 5x. Did I miss out something? Thank for awesome libraries. |
This issue is now fixed in version 0.4.1, please update your dependencies and thanks for the patience! |
@samtstern Thank, it works. |
Works for me too. |
I am still receiving the same issue when a user tries to sign via email and they type their password incorrectly. |
@edwoollard what version are you using? Try |
I was using 0.5.3. Updated to 0.6.0 and it fixed it though. Thank you, @samtstern! |
I'm using the AuthUI to login to an app I'm migrating to the new Firebase. The old login worked fine but the new one always stops with facebook or google.
Call:

startActivityForResult( AuthUI.getInstance(FirebaseApp.getInstance()) .createSignInIntentBuilder() .setProviders( AuthUI.EMAIL_PROVIDER, AuthUI.GOOGLE_PROVIDER, AuthUI.FACEBOOK_PROVIDER) .build(), RC_SIGN_IN);
The spinner spins forever and the Activity never finishes. Back doesn't do anything.
Using email works.
I have setup FB app id & secret in the firebase console. The app has been migrated to the new firebase SDK.
There's no errors in console.
Let me know if I can help you debug somehow to get more info to solve the situation. I know this might have too little info to track the issue.
The text was updated successfully, but these errors were encountered: