allowBackup is not working on Android #619
PouyaLitkouhi
started this conversation in
General
Replies: 1 comment 3 replies
-
Hey, From the look at your setup, it should properly do the backup. Are you triggering the backup, so that Android has a chance to save your database? OS cannot save your files if app is in the foreground (unless you explicitly opt-in). I would suggest to do save some data to AsyncStorage, then trigger backup process to see if it's actually backed up. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current behavior
Hello, on Android I want to keep user data after uninstalling to be able to use it on the next install. I'm using allowBackup and fullBackupContent. but each time I removed the app the data will be lost. I'm not sure what I'm missing
this is my AndroidManifest
<application android:name=".MainApplication" android:label="@string/APPLICATION_NAME" android:icon="@mipmap/ic_launcher" android:allowBackup="true" android:theme="@style/AppTheme" android:fullBackupContent="@xml/my_backup_rules" tools:replace="android:fullBackupContent" android:hasFragileUserData="true">
and this is my my_backup_rules file
<?xml version="1.0" encoding="utf-8"?> <full-backup-content> <include domain="database" path="RKStorage"/> </full-backup-content>
Expected behavior
Data should persist after re-installing the app
Repro steps
1 - open the app and save something in asyncStorage
2- uninstall the app
3- reinstall it
4- the previously saved data is lost
Environment
Beta Was this translation helpful? Give feedback.
All reactions