Skip to main content
September 22, 2012
Question

Updating iOS App without deleting the SQL DB

  • September 22, 2012
  • 2 replies
  • 887 views

Hello there,


I have a huge knot in my brain right now....


I need to update my iOS App, wich has a local SQL db installed (generated when you run the app for the first time).

Users have encrypted data stored in this database. Now, i'm not sure of what i should do, or rather how an update on iOS works.
If you install an update, will the entire App get wiped (with the database) and then replaced with the updated App, or how does this work?

IMPORTANT: I need to update the App, but the Database can't be touched or replaced, wich is stored in the applicationStorageDirectory.

Thank you very much for your help

This topic has been closed for replies.

2 replies

Known Participant
September 22, 2012

It is usually a good idea to keep the database in the ApplicationStorageDirectory directory so that it is not accessible by other applications and it is preserved when the application is updated. -source: http://book.zi5.me/books/read/2473/118

Do you know a solution to my question? writing and reading arrays using application storage directory. its on the 1st page of the forum. id appreciate the help.

September 22, 2012

thanks mate,

okay, luckily i stored the db in this directory