0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

2022年版Googleでログイン(gsi)で、prompt が表示されない?!

Posted at

この記載通りに実施すると、ウマク動作しましたが、一度認証せずにキャンセル、プロンプトを閉じると、以降プロンプトが表示されなくなります。

ちょっと例示のスクリプトに追加して原因調査します。

    google.accounts.id.prompt((notification) => {
      if (notification.isNotDisplayed() || notification.isSkippedMoment()) {
        // notification.getNotDisplayedReason() が suppresed_by_user になってしまって、
        // 2度目以降がウマク動作してくれない
      }
    });

この記載によると、何度かキャンセルをすると、抑制ユーザとして、プロンプトを一定期間表示しなんだとか。。。。
4回行うと 4週間使えないとか、厳しすぎません?

別の仕組みでログインできれば、元に戻るとのこと。。。

もうちょっと検証が必要ですね。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?