-
Notifications
You must be signed in to change notification settings - Fork 480
Description
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
- Platforms tested:
- [*] Android
- AsyncStorage version: 1.15.4