NativeScript / NativeScript/plugins

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

オープン
#592 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
206
フォーク
123
平均マージ
2日 1時間
マージ済み PR(30日)
1

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、@nativescript/google-signin 2.0.6 と NativeScript 8.7.0 を使用して、報告された Button タップのエラーを再現し、その後 GoogleSignin.configure() と GoogleSignin.signIn() のエントリポイントを追跡します。完了条件は、報告された activityResultEvent エラーが発生しなくなり、サインインが完了するか、明確なエラーが報告されることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。