Remove ReactNative app - clear user data with Asyncstorage
I am using Async Storage to store some values ββin my native application. I have a login, so when I log into the application I keep my ID, when I log out I delete it.
But when uninstalling my app without logging out, my data in the async storage is not deleted, which refers to auto-logon when the app is reinstalled.
Could you please tell me how to solve this problem? it happens on android and version> 6
Thank.
source to share
I have the same problem and it just seems to be the immediate cause of the new manifestroid keyword:
<android:allowBackup="true">
You can find more information in the Android documentation , but it quickly states that locally saved app data can be backed up to Google Drive on the latest Android. You can disable it either by setting <android:allowBackup="false">
(true is the default behavior) or by turning off automatic backups in your phone's settings.
source to share
Just wanted to add to user2015762's answer : if your build fails due to a conflict with the manifest of another package you are using, you might also need to add
tools:replace="android:allowBackup"
- <application ...>
and
xmlns:tools="http://schemas.android.com/tools"
- <manifest ...>
, like so:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="YOUR_APP_NAME">
...
<application
android:allowBackup="false"
tools:replace="android:allowBackup"
...>
source to share