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

ログイン処理周りのanalyticsを追加。currentUserが無い場合はFirebaseAuthのinitializeを待つ #559

Merged
merged 5 commits into from
Apr 4, 2022

Conversation

bannzai
Copy link
Owner

@bannzai bannzai commented Apr 4, 2022

Abstract

  • 起動処理周りにanalyticsを追加
  • Firebase Authのinitializeが遅い場合に、currentUserがnullになる可能性がありそうだったので、initializeが終わるまでwaitするようにした

Why

Links

ref: https://stackoverflow.com/questions/37883981/cant-get-currentuser-on-load

Checked

  • Analyticsのログを入れたか
  • 境界値に対してのUnitTestを書いた
  • パターン分岐が発生するWidgetに対してWidgetTestを書いた
  • リリースノートを追加した

@bannzai
Copy link
Owner Author

bannzai commented Apr 4, 2022

  • 未ログインユーザーで初期設定完了後にアプリを再起動するとログインされている
  • ログイン済みユーザーで、擬似的にcurrentUser = null にした場合に、Firebase Authの認証情報が取得されるまでローディングが表示されており、かつその後ログインされる

@bannzai bannzai merged commit b0dce42 into main Apr 4, 2022
@bannzai bannzai deleted the fix/view/root branch April 4, 2022 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant