Allow apps to wake on changes to files in iCloud documents

Originator:mail.junjie
Number:rdar://13199065 Date Originated:13-Feb-2013 01:42 AM
Status: Resolved:Open
Product:iPhone SDK Product Version:6.1.1
Classification:Feature (New) Reproducible:Not Applicable
 
Apps that rely on iCloud Documents & Data for syncing data across devices can benefit from waking up to perform various syncing operations whenever changes to files in its iCloud container are detected.

For instance, a todo app using iCloud for syncing can schedule local notifications as reminders for its todo items. When new todo items are added on one device, the app should be woken up on all other devices to schedule local notifications for the newly added items. Similarly, when modifying and deleting items on one device, the app should wake up on all other devices to modify or remove the scheduled local notifications accordingly.

This could work like Region Monitoring, where apps can register ubiquitous URLs to be monitored by the iOS iCloud daemon. When changes occur, the app can either be launched in the background (if not running) or woken up (if suspended) to handle these events.

Proposed additions to UIApplication 
------------------

- (void)startMonitoringUbiquitousItemAtURL:(NSURL *)url;
- (void)stopMonitoringUbiquitousItemAtURL:(NSURL *)url;

@property (nonatomic, strong) NSArray *monitoredUbiquitousItems;

Proposed additions to UIApplicationDelegate
------------------

- (void)application:(UIApplication *)application didDetectChangesToUbiquitousItem:(NSURL *)ubiquitousItem

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!