Updating apps on the App Store while retaining user data

Moderators: LCNeil, heatherlaine, kevinmiller, elanorb

Post Reply
peramangk
Posts: 22
Joined: Wed Jul 04, 2007 11:45 am
Location: South Australia

Updating apps on the App Store while retaining user data

Post by peramangk » Thu Apr 24, 2014 11:27 am

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.

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Location: Plymouth, UK
Contact:

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

Post by dave.kilroy » Thu Apr 24, 2014 12:04 pm

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!
"...this is not the code you are looking for..."

peramangk
Posts: 22
Joined: Wed Jul 04, 2007 11:45 am
Location: South Australia

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

Post by peramangk » Thu Apr 24, 2014 1:21 pm

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?

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Location: Plymouth, UK
Contact:

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

Post by dave.kilroy » Thu Apr 24, 2014 1:32 pm

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
"...this is not the code you are looking for..."

Post Reply

Return to “idea2app and Coding School”