Skip to content

allowBackup is not working on Android #618

Description

@PouyaLitkouhi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions