Upgrade App lost data

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

sirobchGA0cda
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 47
Joined: Wed Dec 21, 2011 10:42 am
Contact:

Re: Upgrade App lost data

Post by sirobchGA0cda » Mon May 05, 2014 7:50 am

Hi all,
Thank you to you for your help.
Jean-Marc i will continue testing.
Jacque what you say is interesting, because it solves the problem of
upgrade with the launcher stack, but we need to test it.
Best
Boris
My application "GeoMaths" is available on Itunes and Google Play !

michel_bujardet
Posts: 45
Joined: Mon Apr 21, 2014 10:41 am
Contact:

Re: Upgrade App lost data

Post by michel_bujardet » Mon May 05, 2014 12:37 pm

jmburnod wrote: For data I use the documents folder on OSX, windows and IOS for my app EcrireEnPictos (same stack for all)
This may be a question for OSX, but as you mention it, on OS X, once the app is sandboxed, how do you write to the document folder silently without extra permission in the Mac App Store ?

Mitch
http://FontMenu.com

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Upgrade App lost data

Post by jmburnod » Mon May 05, 2014 1:41 pm

Bonjour Michel,
This may be a question for OSX, but as you mention it, on OS X, once the app is sandboxed, how do you write to the document folder silently without extra permission in the Mac App Store ?
EcrireEnPictos is not available on the AppleStore. I use a "Public Store" of a state education department for all versions OSX and IOS (windows coming soon)
The users can download the app
At the first open the app knows if data are installed, if not the case the app download a zip file from our server alternatic.ch.
It works and I never received bad notices from Apple about that.
I hope I'm clear with my poor english
Cordialement
Jean-Marc
https://alternatic.ch

michel_bujardet
Posts: 45
Joined: Mon Apr 21, 2014 10:41 am
Contact:

Re: Upgrade App lost data

Post by michel_bujardet » Mon May 05, 2014 6:23 pm

jmburnod wrote:
This may be a question for OSX, but as you mention it, on OS X, once the app is sandboxed, how do you write to the document folder silently without extra permission in the Mac App Store ?
EcrireEnPictos is not available on the AppleStore. I use a "Public Store" of a state education department for all versions OSX and IOS (windows coming soon)
The users can download the app
At the first open the app knows if data are installed, if not the case the app download a zip file from our server alternatic.ch.
It works and I never received bad notices from Apple about that.
I understand better. So you do not have to go through the review process. I am surprised that you can distribute iOS apps out of iTunes, though...

I have several apps in the Mac OS Store and apps must be sandboxed there. Then writing to the documents folder is forbidden without a file save explicitly presented to the user. Apple reviewers would not let that pass anyway. The only place where files can be saved silently are temp and a folder within Application Support. I place preferences and data in a subfolder within the Application Support folder and do the same kind of checking on first run, then create the folder and file if necessary.

Here is what I do in iOS, based on my experience with Mac Apple Store apps and the review process.
I place the preferences and data files into a subfolder with the bundle of my app as name, within the Library folder :

Code: Select all

specialFolderPath("Library") & "/com.domain.myapp"
Recommended in the Dictionary :
• library - The folder in which the application can store data of various types. In particular, data private to the application should be stored in a folder named with the app's bundle identifier inside library (this folder is backed up by iTunes on sync).

Mitch
http://FontMenu.com

Post Reply