LoginSignup
1
1

More than 3 years have passed since last update.

[Firebase]アプリをアンインストールしてもFirebase AuthのcurrentUserがnullにならない問題

Last updated at Posted at 2020-05-22

アプリをアンインストールしてもFirebase AuthのgetCurrentUser()の戻り値がnullにならなくて困ったので解決方法をここに記録します。

解決した方法

調べたところ、この問題はandroidの自動バックアップ機能によるものらしいです。
マニフェストからこの機能のオフにしたら解決しました。
具体的には、manifest.xmlに以下のコードを追加しました。

manifest.xml
 <application
  android:allowBackup="false"
  android:fullBackupContent="false"
  ...

参考

1
1
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
1
1