IOS Documents folder and Upgrade

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

IOS Documents folder and Upgrade

Post by Nakia » Tue Jan 15, 2013 10:21 pm

Hi,

Can anyone tell me what happens to the contents of the Documents Folder if one of my users Upgrades to an updated version of my App?
My App stores some completed "inspections" in this folder and I dont want the user to loose these when he/she upgrades..

Many Thanks
Nakia

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: IOS Documents folder and Upgrade

Post by Jellicle » Tue Jan 15, 2013 11:25 pm

Check the "File and folder handling" section of the iOS release notes.

• documents – the folder in which the application should store any document data (this folder is backed up by iTunes on sync)

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Re: IOS Documents folder and Upgrade

Post by Nakia » Wed Jan 16, 2013 1:55 am

Yep did read that but it doesn't reference what happens upon an App upgrade.. (Not connected to Itunes)
I can see that the folder is backed up by Itunes but that doesn't answer my question...

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: IOS Documents folder and Upgrade

Post by Simon » Wed Jan 16, 2013 2:40 am

Hi Nakia,
Check out this posting:
http://forums.runrev.com/phpBB2/viewtop ... ing#p36849
Folder "documents" will not change when updating your app. Only if you delete your app is documents gone.
That's from Bernd and he's really smart.

But I agree we should have a more definitive answer.
If you don't get a good answer in 24 hours go ahead and bump this post as I'm sure someone knows.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am

Re: IOS Documents folder and Upgrade

Post by marksmithhfx » Wed Jan 16, 2013 3:13 am

Simon wrote:Hi Nakia,
Check out this posting:
http://forums.runrev.com/phpBB2/viewtop ... ing#p36849
Folder "documents" will not change when updating your app. Only if you delete your app is documents gone.
That's from Bernd and he's really smart.
Simon
Bernd is right. During development I am constantly changing the app and the document folder contents never change. Unless of course your app installs new files in the documents folder. If you do something like that you may to check to make sure you don't overwrite or replace any existing files in the documents folder.

-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: IOS Documents folder and Upgrade

Post by Simon » Wed Jan 16, 2013 3:44 am

Hi Mark,
Thanks for that, but can we put a fine point on it?
1) This is for iOS
2) Apps upgraded through iTunes will not change the contents of the existing documents folder.

In the database example, it gets copied to the "engine"
First check "documents" to make sure it isn't already there if it is skip, else copy the database.
Makes sense of course.

Can the same be said about Android and Google Play?
Just I couldn't find documentation to that effect.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: IOS Documents folder and Upgrade

Post by jacque » Wed Jan 16, 2013 6:32 pm

Android will also preserve the contents of the document folder until the app is deleted from the device. Updates retain the user data.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Re: IOS Documents folder and Upgrade

Post by Nakia » Thu Jan 17, 2013 2:40 am

Is there a way to see the contents of the Documents Folder on the IPhone Simulator through
finder?

I am having trouble getting a PDF to launch (into mergReader) and want to check its there visually aeven though doing a check on the filename reviels the file
does exist..

endernafi
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 296
Joined: Wed May 02, 2012 12:23 pm
Contact:

Re: IOS Documents folder and Upgrade

Post by endernafi » Thu Jan 17, 2013 5:28 am

The location of your apps:
/Users/yourUserName/Library/Application Support/iPhone Simulator/6.0/Applications


Best,

~ Ender Nafi
~... together, we're smarter ...~
__________________________________________

macOS Sierra • LiveCode 7 & xCode 8

Post Reply