TheCocoaProject/cordova-plugin-nativestorage

Android Entries Not Cleared

Opened this issue · 5 comments

I've noticed that recently the NativeStorage entries are not being cleared after uninstalling the app. Looking at the NativeStorage github, it seems like android is using Sharedpreferences.

I googled similar issues and it seems like, we have to set android:allowBackup=false in the application tag of AndroidManifest.xml.

Currently, my application tag looks like this:
<application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true">

@GillesC Thanks for the quick reply. The first FAQ entry in the docs actually implies something like that, when it says that "the data should be persistent until the app is deleted from the device.":

image

That sentence implies that persistence is ensured till uninstalling the app. It, however, does not say anything about maintaining persistence (or not) after uninstalling/reinstalling.

But to avoid any further misunderstanding, I'll update the docs with your remark. Thank you for your contribution!

Thank you so much.