donotbackup flag to comply with new Apple guidelines for downloaded content! Also allow folder creation.

Hello,

PERSISTENT DOWNLOADED DATA IN CACHES FOLDER

I’m working on a App that is heavy dependent on Downloadable content. And since iCloud was introduced, Apple doesn’t allow to save Images or “big” content in the Documents folder. You have to store them in the Caches folder. Applications are being rejected when storing data in the Docs folder, see:

Corona already supports the Caches folder via: system.CachesDirectory.
Still, the data in the Caches folder can be deleted anytime, it is not totally safe.

There is a way to avoid that by adding the “com.apple.MobileBackup” attribute, i.e. donotbackup.

But that is something Native, so Corona needs a way for us to flag that.

From official documentation: Use this attribute with data that can be recreated but needs to persist even in low storage situations for proper functioning of your app or because customers expect it to be available during offline use. This attribute works on marked files regardless of what directory they are in, including the Documents directory..

CREATION OF FOLDERS VIA CORONA CODE

Corona file manipulation has also to allow the creation of folders. Again, as I’m working on a App that is heavy dependent on Downloadable content, it has 100+ downloadable files and placing them all in the same folder is just a mess. [import]uid: 10990 topic_id: 24785 reply_id: 324785[/import]

+1 for do not backup!! [import]uid: 64174 topic_id: 24785 reply_id: 100469[/import]

+1 [import]uid: 123747 topic_id: 24785 reply_id: 100497[/import]

Will bring this up in our next meeting - thank you Karnak :slight_smile: [import]uid: 52491 topic_id: 24785 reply_id: 100517[/import]

Hi Peach, Any update? [import]uid: 18718 topic_id: 24785 reply_id: 102833[/import]

BUMP!

Peach, any updates??? [import]uid: 64174 topic_id: 24785 reply_id: 103527[/import]

Just got rejected for this very issue. +1 [import]uid: 18679 topic_id: 24785 reply_id: 103565[/import]

I reduced my apps iCloud storage from 20MB to 6MB and still got rejected. I have been waiting on Ansca for some direction or solution so I’ll know if I need to rewrite my code or not. Please just respond [import]uid: 18718 topic_id: 24785 reply_id: 103636[/import]

Hey guys,

I don’t have an update on this yet, it isn’t my department, however you’re right, you do need an answer and I’m going to do my best to get you one ASAP.

I apologize you’ve been stuck waiting and thank you for your patience, I will get an official answer for you.

Peach [import]uid: 52491 topic_id: 24785 reply_id: 103672[/import]

We are planning to add LuaFileSystem this week. We also plan on introducing an API to deal with iCloud backups.
[import]uid: 7563 topic_id: 24785 reply_id: 103775[/import]

+1 for @ewing and @peach pellen [import]uid: 19626 topic_id: 24785 reply_id: 103776[/import]

Great news! [import]uid: 18679 topic_id: 24785 reply_id: 103842[/import]

+1 my app was just rejected for the same reason :frowning:

@ewing, any update on when this will be available? Are you in the development team? I also have an outstanding bug pending review, case no. 13795, “Incorrect display.contentWidth value returned”

Thanks in advance. [import]uid: 56623 topic_id: 24785 reply_id: 104537[/import]

Have you tried os.execute to create a directory?

os.execute("mkdir " .. dirname)  

I’ve not tested it personally, but I found the reference here: http://stackoverflow.com/questions/1690913/how-to-create-a-directory-in-lua
And it will hopefully work until you can get your hands on the LuaFileSystem API [import]uid: 134101 topic_id: 24785 reply_id: 104554[/import]

that will probably work on the simulator, but I’m pretty sure on iOS those OS calls are locked down. [import]uid: 19626 topic_id: 24785 reply_id: 104555[/import]

LuaFileSystem will appear in the next daily build.
The iCloud backup disable will probably be next week. Question: do you guys need any other extended attributes besides iCloud backups?
[import]uid: 7563 topic_id: 24785 reply_id: 104558[/import]

Thanks for the update Ewing, hopefully you could get the iCloud backup disable feature early next week.

I have several global clients (but local office) waiting for my app (already delayed in submitting the first time) to be released and I can’t resubmit without the iCloud backup disable feature.

Good luck with the coding - luck is required sometimes! :slight_smile: [import]uid: 56623 topic_id: 24785 reply_id: 104561[/import]

i am in the same situation as simon.ong, i read in another forum thread it will be ready this week so i stopped working on a work around. can the backup feature be bumped up higher on the todo list? [import]uid: 18718 topic_id: 24785 reply_id: 104562[/import]

Hi Ewing, can confirm if this will be ready this week or not? If it isn’t I really need to work on a workaround.

Thank you,
Simon [import]uid: 56623 topic_id: 24785 reply_id: 105634[/import]

It was committed/pushed into mainline today. It should be in the next daily build (i.e. hopefully tonight).

[import]uid: 7563 topic_id: 24785 reply_id: 105636[/import]