Google-signin: GoogleSignin.signIn() Promise never resolved.

Created on 28 Nov 2017  路  4Comments  路  Source: react-native-google-signin/google-signin

I'm trying to use this library using Android 7.1.2 developing with RN 0.50.3 and ExpoKit (SDK23). I already had installed and compiled everything just fine. Everytime I call this function the Google Sign In shows in the phone, I choose my account and then nothing, the promise is never resolved, not even rejected.

I tried adding this line of code to search for the resolving data but it seems that the event is never called.
DeviceEventEmitter.addListener('RNGoogleSignInSuccess', user => console.log("RNGoogleSignInSuccess", user));

If later of that I call the function currentUserAsync() it shows that the user is logged in. I can do signOut() too. The single promise that is never resolved is signIn()

I followed every single step of installation, no errors, not even in the logcat.
Any help please?

馃挜 Bug

Most helpful comment

I got this problem too and get an error message { [GoogleSigninError: DEVELOPER_ERROR] name: 'GoogleSigninError', code: 10 }

All 4 comments

Check in your MainActivity.java if you override onActivityResult. The same thing happened in our project where we had overridden it without calling super on it.

Make sure it looks like this:

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    // Your other code
}

I got this problem too and get an error message { [GoogleSigninError: DEVELOPER_ERROR] name: 'GoogleSigninError', code: 10 }

any one find the solutions ?

In an effort to clean the issues up, this is being closed. Please open a new issue with a reproduction if you're still experiencing a problem.

Was this page helpful?
0 / 5 - 0 ratings