'Ionic 5 Angular: How to clear capacitor storage on app uninstall?

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!



Solution 1:[1]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 sasi