Skip to main content
bluelemonade
Inspiring
December 6, 2012
Question

ipad content sync

  • December 6, 2012
  • 1 reply
  • 369 views

hello,

i distribute an ipad app via mdm. how can I update content in the local folder of the app. I don't want to publish a new app when only an xml file or video has changed?!?

regards

This topic has been closed for replies.

1 reply

Legend
December 6, 2012

AFAIK, you cannot (and _should_ not be able to) update the application folder itself.

However...

You have File.applicationDirectory ... which you shouldn't be able to modify

You _also_ have File.applicationStorageDirectory ... which you _should_ be able to modify

Therefore, you could do something like this:

1. Have a default version of your xml in your packaged APK that ensures users can launch the app

2. On launch or at periodic intervals, check a server for a new version of the XML and, if available, download it and store in applicationStorageDirectory

3. On start-up, check first applicationStorageDirectory and second applicationDirectory for your XML and use the first one you find

G