React-native: Uninstall ReactNative App - Clean User Data using Asyncstorage

Created on 17 Apr 2017  路  6Comments  路  Source: facebook/react-native

Hi,
I am using Async Storage to store some values in my react native app.
I have a login so when I login into the app I am storing my id, when logout I am removing it.

But when uninstalling my app without logout then my data is async storage is not removing that refers to automatic login when installing the app again.

Can you please tell me how to solve this
this happens in android device and version >6

Thankyou

AsyncStorage Locked

Most helpful comment

Hi, I've got the same issue and it simply seems to be the direct cause of android's new manifest keyword:
<android:allowBackup="true">
You can find more information on android documentation but quickly it says that app locally saved data might be backed up on Google Drive on the latest versions of Android. You can disable it either by setting <android:allowBackup="false"> (true is the default behavior) or by disabling auto backup in your phone's settings.

All 6 comments

If the app is in development mode , if must have to 'uninstall for all users' going to settings/apps/your-app , if in production mood you don't have to that . Usually it shouldn't happen .

My app is in production mode but it is happening only in android version greater than 6 only.
In remaining devices its working fine

Hi,
Please anyone tell me how to solve this as its urgent ]

When I run in debug mode then its working fine
but when I release the apk and install then its not working
my react native version is: 0.43.3

Hi, I've got the same issue and it simply seems to be the direct cause of android's new manifest keyword:
<android:allowBackup="true">
You can find more information on android documentation but quickly it says that app locally saved data might be backed up on Google Drive on the latest versions of Android. You can disable it either by setting <android:allowBackup="false"> (true is the default behavior) or by disabling auto backup in your phone's settings.

Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!

If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

  • Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
  • If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
  • Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.

Can someone tell me how to clear in IOS as well?

Was this page helpful?
0 / 5 - 0 ratings