-
Notifications
You must be signed in to change notification settings - Fork 158
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
3.4.0-rc.4 exception that was not in previous versions #364
Comments
Same issue happening with us at Capacitor |
Apparently, to "fix" the issue, you need to call I will try to figure out a solution in a couple of days. |
I can confirm calling I didn't define androidClientID anywhere, but registered a google.json file with gms.
GoogleAuth: {
scopes: ["profile", "email"],
clientId: "12345-abc123.apps.googleusercontent.com",
iosClientId: "12345-abc123.apps.googleusercontent.com",
}, |
This didn't work for me after upgrading to capacitor 6.1.0 + plugin 3.4.0-rc.4. I'm also calling GoogleAuth.initialize({}). Any suggestions? |
First line of this method:
public void signIn(PluginCall call) {
Intent signInIntent = googleSignInClient.getSignInIntent();
startActivityForResult(call, signInIntent, "signInResult");
}
generates an exception:
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Intent com.google.android.gms.auth.api.signin.GoogleSignInClient.getSignInIntent()' on a null object reference at com.codetrixstudio.capacitor.GoogleAuth.GoogleAuth.signIn(GoogleAuth.java:81)
Both, clientId is defined in capacitor.config.ts and server_client_id in strings.xml.
3.4.0-rc.0 does not generate the exception, having the same conditions.
The text was updated successfully, but these errors were encountered: