Can you, in Swift get a change notification when a document in the apps's iCloud Drive container changes? For example I am testing a simple concept where I am storing all app data as a json string in the app's iCloud Drive container and I am loading it when the app launches. I can retrieve and save the json string on demand on multiple devices, but I am wondering if there is a way to get a change notification sent to an app when the file is changed on another device. If so, some direction would be appreciated.
iOS iCloud document change notification
370 Views Asked by Stewart Lynch At
1
There are 1 best solutions below
Related Questions in SWIFT
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Swift code with multiple NSDateFormatter - optimization
- How do I add multiple in app purchases in Swift Spritekit?
- cellForRowAtIndexPath and prepareForSegue return different label colors
- Getting this message in my console in xcode "Ignoring restoreCompletedTransactionsWithApplicationUsername: because already restoring transactions"?
- Change background of an Accessory View in a UITableViewCell
- fade in an bounce animation subview
- Create a PFObject and PFRelation after PFUser Sign Up
- Swift 2 - Pattern matching in "if"
- How do I give inputs through NSURL
- How do I add custom cells to TableView in Swift?
- UIWebView not loading URL in simulator
- Compiler complains that 'Expression resolved to unused function' when removing index in array of functions
- Cast from 'Int?' to unrelated type 'NSNumber' always fails
Related Questions in NOTIFICATIONS
- Display both alertTitle and AlertBody on a custom WatchKit notification
- App crash (if closed) after click on notification
- Design pattern for corner-case logic without switch and conditional statements
- How display notification on IOS 8 like in google maps in navigation time
- Phonegap notification.alert works only in Android
- Allow user to select notification sound in iOS Notification Settings
- Send a Android BLE GATT Notification
- How to remove notifications when touched?
- Change text of a TextView using a notification action without opening the app
- ViewController deinit after performing segue using Notification
- Using AS3 Timer & distriqt Notification ANE To Send Notifications While In Sleep Mode
- How to show notification in android with arabic text?
- Notification not appearing Notification Tray
- how to notify a user when a new sql record inserted?
- Should I catch Exception, Throwable or other in EventDispatcher/Observable
Related Questions in ICLOUD-DRIVE
- iOS download file from iCloud Drive
- File types association with my app
- How do I enable the iOS Files app to copy files into my app?
- iOS 14: NSFilePresenter not getting callbacks/notifications; works on iOS13
- iOS 14 NSMetadataQuery not updating; no notifications are sent, works on iOS13
- Saving a file to icloud drive
- How to backup file to iCloud but not shown in iCloud Drive?
- Can't view iCloud Files from iPhone
- Why is my team no allowed to manage iCloud container?
- Using the Ubiquity Container after all files have been deleted
- Xamarin ios Cloud file copy location issue
- Error 257 when opening file by tapping it in files app. Acessing the same file via the file browser works (Swift 5 - Xcode12)
- Save images of cloudKit to icloud with folder structure
- Basic example of Camera upload to iCloud Drive Folder (with Swift in Xcode)?
- Save game data into iCloud via GameKit not working
Related Questions in UBIQUITYCONTAINER
- How can I create an app icon folder in the files app and copy items to it?
- iCloud Drive Ubiquity Container Folder not showing
- Why is UbiquityContainer nil if user not logged into iCloud?
- iOS iCloud document change notification
- ICloud Ubiquity Container works in app, but I'm unable to expose/publish App folder on iDrive. Some say 'wait a day or two' for it to resolve itself
- Ubiquitous Container is not visible on icloud drive
- How to expose and retrieve files in iCloud Drive on iOS8 provided by OS X application
- Issues with bookmarks of files in ubiquity container on iOS
- NSMetadataQueryDidUpdateNotification, can't get this to work. Code Snippet included
- Accessing image across multiple iOS devices
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you are using
UIDocument, you can register forUIDocumentStateChangedNotification(for a particular document), otherwise if you are looking for changes in the App's iCloud container you need to useNSMetaDataQuerywhich is described in Discovering an App's Documents in Document-Based App Programming Guide for iOS