简体   繁体   中英

Managing Cordova/Phonegap app uninstall

My Cordova app does create some files in the persistent filesystem, and I would like to clean them when the user uninstall the app.

On iOS, as persistent files are stored in the app folder, they will be remove by default, but on Android, they are stored at the device file system root, and they are not removed at uninstall.

Is there any Cordova plugin able to run a script when an app is uninstalled ?

If you create those files in SdCard and all you cannot remove them. But If you create them in AppCache, they will be removed. You cannot manually do some task before uninstalling. OS did not give permission to do that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM