I am developing a mobile app which involves Guest Login.
I want the users to easily restore the Guest Login. For example,
- Install my app.
- Use my app with Guest Login, without manual ID and password creation.
- Uninstall my app.
- Install my app again.
- Use my app with the existing Guest Login again, without manual ID and password.
Even if the user’s mobile app is not associated to Google nor Apple ID, I want the users can restore his or her Guest Login. Of course, resetting his or her mobile device is an exception.
I think Apple KeyChain Services, Google KeyStore API, Android FileBackupHelper
, Android AAID may be the solution, but I am not sure of it.
Of course, I know that other ways than Guest Login such as Facebook or Google login, but my question is for the people without those login accounts.
2
Answers
Firebase Authentication might help you. This section includes an anonymous login process other than the normal social logins. Read the link below.
https://firebase.google.com/docs/auth/android/anonymous-auth
In Android you should have to use
android:allowBackup=true
in<application>
tag which enables/disables backupby default
allowBackup
is true. if you want to disable Auto Backup, setandroid:allowBackup
to false. You may want to disable backups when your app can recreate its state through some other mechanism or when your application deals with sensitive information that should not be backed up.By using Auto Backup includes files in most of the directories that are assigned to your application by the system are:
getFilesDir()
You could use
sharepreferences
to store user details and get user data after reinstalling the applicationMore about Auto Backup