Page 1 of 1

Updating apps on the App Store while retaining user data

Posted: Thu Apr 24, 2014 11:27 am
by peramangk
How can I design my ios app so that it can be easily updated in the app store, but still allow users to keep their data from previous versions?
I know this has be covered somewhere but I can't find it.

Re: Updating apps on the App Store while retaining user data

Posted: Thu Apr 24, 2014 12:04 pm
by dave.kilroy
Hi permangk

You can store user data (within the iOS 'sandbox') in the 'documents folder - this will not get overwritten when you pump out a later version of your app

Code: Select all

put specialFolderPath("documents") & "/data/" into tTargetDirectory
There are quite a few ways of going about this, this lesson gives a good starting point: http://lessons.runrev.com/s/lessons/m/4 ... -on-mobile

Let us know if you get stuck - and good luck!

Re: Updating apps on the App Store while retaining user data

Posted: Thu Apr 24, 2014 1:21 pm
by peramangk
Thanks Dave. :D
The link is very useful, especially as it contains a lot of really detailed stuff on adding database files which will survive an update of the main stack.

I've heard of a technique where the main stack is basically a single card front for the real program and I'd like to find out more.
Is the 'real' stack created as a substack of the dummy front stack or is it also a main stack?

Is this technique explained anywhere?

Re: Updating apps on the App Store while retaining user data

Posted: Thu Apr 24, 2014 1:32 pm
by dave.kilroy
I think what you are referring to is a 'splash stack' - you can use this approach on desktop and mobile, here's a lesson to get you started http://runrev.screenstepslive.com/s/les ... mit=Search