Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LocalStorage not being cleared on app uninstall - Android 6

i'm having a problem where the localstorage doesn't get cleared when i uninstall the app (ionic app). It's only happening on my Samsung S7 Edge with Android 6 (at least is the only device with Android 6 that i have).

The only way of clearing it is by Clearing Data/Cache through the Application Manager of the device...

It works properly on other devices... Since the localstorage implementation is pretty straightforward I have no clue why this is happenning...

Any ideas?

like image 886
ale.m Avatar asked Jul 26 '16 17:07

ale.m


People also ask

How do I get rid of local storage on my phone?

go to your Mobile device app settings, selecta app and press the button to delete all data. Or alternatively implement a button in your app that allows the user to delete all data. On the button you need a client action that uses to delete all entity CRUD action to delete data for all entities.

How do I uninstall stubborn apps on Android?

At this point, you should be able to go into Settings | Application manager (or Apps on some devices), locate and tap the app listing, and then tap Uninstall to remove the app. You don't have to let app administrative privileges get in the way of removing those pesky apps you've tried and no longer want.

Does uninstalling Android app delete data?

Yes, deleting an app removes the program and all its data. That means if you paid to purchase the app, you won't have to pay again should you choose to reinstall it.


1 Answers

I had problems adding those lines to my AndroidManifest.xml in my cordova /progject/platforms/android folder - each time I did it was overwritten every time I compiled the app. I had to add the following to my /project/config.xml file in order to get the manifest edits to take:

<edit-config file="AndroidManifest.xml"
             target="/manifest/application"
             mode="merge">
    <application android:allowBackup="false"/>
    <application android:fullBackupContent="false"/>
</edit-config>
like image 148
rolinger Avatar answered Sep 18 '22 18:09

rolinger