Page 1 of 1
IOS Documents folder and Upgrade
Posted: Tue Jan 15, 2013 10:21 pm
by Nakia
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
Re: IOS Documents folder and Upgrade
Posted: Tue Jan 15, 2013 11:25 pm
by Jellicle
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
Re: IOS Documents folder and Upgrade
Posted: Wed Jan 16, 2013 1:55 am
by Nakia
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...
Re: IOS Documents folder and Upgrade
Posted: Wed Jan 16, 2013 2:40 am
by Simon
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
Re: IOS Documents folder and Upgrade
Posted: Wed Jan 16, 2013 3:13 am
by marksmithhfx
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
Re: IOS Documents folder and Upgrade
Posted: Wed Jan 16, 2013 3:44 am
by Simon
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
Re: IOS Documents folder and Upgrade
Posted: Wed Jan 16, 2013 6:32 pm
by jacque
Android will also preserve the contents of the document folder until the app is deleted from the device. Updates retain the user data.
Re: IOS Documents folder and Upgrade
Posted: Thu Jan 17, 2013 2:40 am
by Nakia
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..
Re: IOS Documents folder and Upgrade
Posted: Thu Jan 17, 2013 5:28 am
by endernafi
The location of your apps:
/Users/yourUserName/Library/Application Support/iPhone Simulator/6.0/Applications
Best,
~ Ender Nafi