Didn't find anything related
I save my app data via lokijs in to .db file under fs.knownFolders.currentApp().path + "loki.db". On updating the app via Google Play loki.db does not exist anymore.
Android 7.0
Save a file with file-system and update app
Is file-system intended to save persistently over app updates? If not, how can i achieve this? nothing related in the docs
@cgebe the currentApp folder is the root folder of your application. When updating the app it is expected that all source files and folder will be updated respectively. To store an information that will not be deleted on source update you can use documents folder and even create your own subfolder. It can still be manually deleted from the user but it won't be deleted when you are updating the application source.
Thanks for this advice!
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
@cgebe the currentApp folder is the root folder of your application. When updating the app it is expected that all source files and folder will be updated respectively. To store an information that will not be deleted on source update you can use documents folder and even create your own subfolder. It can still be manually deleted from the user but it won't be deleted when you are updating the application source.