Persist user on App Reinstall with Firebase

前端 未结 1 1813
慢半拍i
慢半拍i 2021-01-13 08:25

When a user deletes and reinstalls my app, I want their anonymous user account to persist. My iOS app is working as expected, but Android is not. I create anonymous users li

相关标签:
1条回答
  • 2021-01-13 08:48

    It is null becase Firebase Anonymous Authentication accounts does not persist across application uninstalls. If you uninstall the application, everything that was saved locally will be deleted, including the anonymous auth token that identifies that account. There is no way to reclaim that token for the user. You can use Firebase Anonymous Authentication to create and use temporary accounts to authenticate users in your application.

    These temporary anonymous accounts can be used to allow users who haven't yet signed up to your app. If such an anonymous user decides later to sign up to your application, you can link their sign-in credentials to the anonymous account. What should you do, you should encourage your users to fully log in with a supported account provider so that they can log in from all their devices without worry of losing their data.

    0 讨论(0)
提交回复
热议问题