IOS Documents folder and Upgrade
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
IOS Documents folder and Upgrade
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
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
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
• 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.
Former LiveCode developer.
Now recovering.
Re: IOS Documents folder and Upgrade
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...
I can see that the folder is backed up by Itunes but that doesn't answer my question...
Re: IOS Documents folder and Upgrade
Hi Nakia,
Check out this posting:
http://forums.runrev.com/phpBB2/viewtop ... ing#p36849
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
Check out this posting:
http://forums.runrev.com/phpBB2/viewtop ... ing#p36849
That's from Bernd and he's really smart.Folder "documents" will not change when updating your app. Only if you delete your app is documents gone.
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!
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: IOS Documents folder and Upgrade
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.Simon wrote:Hi Nakia,
Check out this posting:
http://forums.runrev.com/phpBB2/viewtop ... ing#p36849That's from Bernd and he's really smart.Folder "documents" will not change when updating your app. Only if you delete your app is documents gone.
Simon
-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
Re: IOS Documents folder and Upgrade
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
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!
Re: IOS Documents folder and Upgrade
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
HyperActive Software | http://www.hyperactivesw.com
Re: IOS Documents folder and Upgrade
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..
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
The location of your apps:
/Users/yourUserName/Library/Application Support/iPhone Simulator/6.0/Applications
Best,
~ Ender Nafi
/Users/yourUserName/Library/Application Support/iPhone Simulator/6.0/Applications
Best,
~ Ender Nafi
~... together, we're smarter ...~
__________________________________________
macOS Sierra • LiveCode 7 & xCode 8
__________________________________________
macOS Sierra • LiveCode 7 & xCode 8