I am using SQLite in a VoltBuilder app that allows the user to periodically update the database by pressing a button in the app. During the process, I download a new database and import it with NSB.overwriteAlways; the whole process works as expected.
When the app starts I specifiy NSB.overwriteNever (in extrafiles) so any database updates will not be overwritten.
I am having an issue during testing. If I do an initial installation of the app on a phone that has never had it installed, the database packaged with the app installs as expected. I can update the database as described and everything works.
If I delete the app from the phone and try to do the process over again, the database packaged with the app does not install. I am using (NSB.overwriteNever |only write out database if it does not exist yet.)
When an app is “deleted” does it remove EVERYTHING?
According to the documentation, if no database exists, “overwriteNever” should install the database packaged with the app.
Am I missing something?
NSB.overwriteAlways |overwrite the existing database (default).
NSB.overwriteNever |only write out database if it does not exist yet.
NSB.overwriteIfVersionDifferent |overwrite if the version number of the database has changed.
NSB.overwriteIfVersionSame |overwrite if the version number of the database is the same.