I am using the LocalStorage in my cordova-based android app to store some information, but I have recently experienced something very weird. The LocalStorage persists even after I uninstall the app and install it again!
As far as I can understand, this should not be the case. Everywhere I read people say something like "LocalStorage is deleted when you clear app data from settings, or the app in uninstalled".
This has made me wonder a few things; How persistent is the LocalStorage? Does it persist between applications? Is it possible that I have some other cordova app installed which would be able to access the same LocalStorage?
I have only seen this behaviour on android.
This is not what I expect, or want, to happen. Is there some way I can force the data to be deleted when the user uninstalls the app?
Some info is found here:
How permanent is local storage on Android and iOS?
I also had a same kind of problem you can find a answer from this link. It was worked for me.
These are the steps I followed.
platforms\android\
AndroidManifest.xml
file add the followings to application tag
android:allowBackup="false" and android:fullBackupContent="false"
eg: In my case it is look like this.
<application android:allowBackup="false" android:fullBackupContent="false" android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With