You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Same issue happening with us at Capacitor 6.0.0 + plugin 3.4.0-rc.4. It does not work with the options being set only at capacitor.config.{ts,json} file or at strings.xml, but if I provide options as parameter GoogleAuth.initialize({...options}) it doesn't throw.
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: