My understanding of what happens to app data in each of the app folders is outlined below, can somebody confirm that I'm correct and if not, where to find Apple documentation on it. I'm having trouble finding enough information to verify.
My understanding is limited on what happens to data when the user upgrades their iOS. Is the data in folders that are backed up by iTunes/iCloud the only safe places for data? Meaning data in /Tmp and /Library/Caches will not be there once the user upgrades their iOS?
/Documents:
- iOS will back-up data via iTunes/iCloud? Yes
- iOS guarantees data restoration after new app version release? Yes
- iOS guarantees data restoration after iOS upgrade? Yes
/Library:
- iOS will back-up data via iTunes/iCloud? Yes
- iOS guarantees data restoration after new app version release? Yes
- iOS guarantees data restoration after iOS upgrade? Yes
/Library/Caches:
- iOS will back-up data via iTunes/iCloud? No
- iOS guarantees data restoration after new app version release? Yes
- iOS guarantees data restoration after iOS upgrade? No
/Library/Preferences:
- iOS will back-up data via iTunes/iCloud? Yes
- iOS guarantees data restoration after new app version release? Yes
- iOS guarantees data restoration after iOS upgrade? Yes
/Tmp:
- iOS will back-up data via iTunes/iCloud? No
- iOS guarantees data restoration after new app version release? No
- iOS guarantees data restoration after iOS upgrade? No