Skip to main content
March 15, 2013
Answered

right storage folder according to iOS guidelines?

  • March 15, 2013
  • 8 replies
  • 1692 views

Hi, I was wondering where is the best place to store a larger amount of data on iOS devices. Currently, I know that "File.applicationStorageDirectory" is no good since it will be backed up by iCloud. I was thinking about using "File.documentsDirectory" that, on Android, points to the SD card. The data is not sensitive (I don't care if people gain access to it). Can I keep using "File.documentsDirectory" without harming the iOS development guidelines?

I'm targeting AIR 3.6.

Thank you.

This topic has been closed for replies.
Correct answer vabhatia

In AIR 3.6, preventBackup property is introduced in File objects using which you can prevent files and directories from being backed up on cloud and still adhere to iOS development guidelines. More details available in the blog post http://blogs.adobe.com/airodynamics/?s=preventBackup

8 replies

vabhatiaCorrect answer
Adobe Employee
March 16, 2013

In AIR 3.6, preventBackup property is introduced in File objects using which you can prevent files and directories from being backed up on cloud and still adhere to iOS development guidelines. More details available in the blog post http://blogs.adobe.com/airodynamics/?s=preventBackup

March 16, 2013

Thank you, Varun.

If I got it right, I have two options here: using the cache directory or setting the prevent backup of my files... The idea of the cache dir is nice, but, on Android it will be on the same place as the app installation, right? Not always on the sd card, right?

March 17, 2013

According to the Android standards, the cache directory is not the best place to store a large amount of data (http://developer.android.com/guide/topics/data/data-storage.html), so I believe that setting preventBackup iss the better choice...