Jampot — Mobilizing Technologies

ANE iOS Data Storage set DoNotBackup attribute for iOS5.0.1 native extension

Since November 2011 Apple have updated the way you need to save files on iOS 5.0.1
Data Storage Guidelines

Failure to comply to these guidelines could lead to Rejection for AIR apps using the File.applicationStorageDirectory.
Also Apps using the File.documentsDirectory for offline storage may be rejected if the data is not deemed to be critical or user generated.

All Apps that wish to comply with Apple’s Data Storage guidelines will need to set the ‘Do Not Backup’ attribute on any folder or file that should not be backed up to iCloud.

To enable this you will need the latest version of Flash Builder 4.6. You will also need an Adobe Native Extension (ANE) to enable you to set a directory/file with the latest iOS5.0.1 ‘Do Not Backup’ attribute for saved files that are not user generated / critical to offline use and that do not need backed up to iCloud. Here’s one we made earlier!
;)
Download Flash Builder 4.6 Project (Mac) complete with iOS ANE
Download Flash Builder 4.6 Project (Windows) complete with iOS ANE

Watch how to setup DoNotBackup using Flash Builder 4.6 Windows on YouTube

Our FB4.6 example also uses a custom class to set new save directories for iOS devices called DataStorage which creates several possible destinations available for use. The DataStorage class also provides an Android alternative so you don’t need to create any additional logic.
The idea is that when you have created these new directories, that you can simply pass that directory to the ANE MobileBackup doNotBackup() method.

 

Private Documents directory is successfuly set to 'do not backup' attribute.

Follow @NativeExtension

© Copyright 2011 · JamPot® · All Rights Reserved. · ^ Back to Top