Skip to content
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

[@nativescript/google-signin]: Cannot read properties of undefined (reading 'activityResultEvent') #592

Open
sasabogi opened this issue Jun 28, 2024 · 0 comments

Comments

@sasabogi
Copy link

In runtime I am getting an error "Cannot read properties of undefined (reading 'activityResultEvent')" by clicking on button.

This is my code:
import { GoogleSignin } from '@nativescript/google-signin';

constructor() {
    GoogleSignin.configure() // called earlier in the app
}
  public signInApple(): void {
    GoogleSignin.signIn().then((user) => {
        console.log(user);
    },
    (err) => {
       console.log(err);
    });
}

In template:
<Button class="btn" (tap)="signInApple()">Sign in with Apple</Button>

@nativescript/google-signin version 2.0.6
Nativescript version 8.7.0, but tried with earlier versions.

Please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant