breautek commented on issue #548: URL: https://github.com/apache/cordova-plugin-file/issues/548#issuecomment-1356998825
You need to use a directory that is "synced" to the cloud, such as `cordova.file.syncedDataDirectory`. Note that this constant only exists for iOS. Android does not have a `syncedDataDirectory` equivalent. Whether or not data survives app deletes depends on user device settings. You can't actually rely on this behaviour. Android doesn't have an equivalent, however some devices will retains an app's data directory for a period of time after uninstall, or sometimes the user can sync their phone to the cloud which includes app data directories, that will be recovered on reinstall, but there is no special directory that is synced to the cloud like iOS has. In other words, you cannot guarantee that your data will survive app uninstalls. I'm closing this issue because this doesn't describe a bug. For support style questions, I suggest asking on our [Discussions](https://github.com/apache/cordova/discussions) board. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
