Reputation: 317
I have the problem that after uninstalling and reinstalling my app, the Capacitor Storage data from the uninstalled app is still available.
I use the standard Storage-Plugin of Capacitor. They say "Stored data is cleared if the app is uninstalled." But that's not the case with me on android.
How can Capacitor Storage be cleared when I uninstall an app?
Many thanks!
Upvotes: 4
Views: 3070
Reputation: 534
I know this is a very late answer, this answer may be helpful to other people like me.
Add android:allowBackup="false"
in application tab in your AndroidManifest.xml
file. It was true in my case, so the storage variable was returning true even after uninstalling the application.
Upvotes: 2