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
371 Views Asked by Stewart Lynch At
1
There are 1 best solutions below
Related Questions in SWIFT
- Navigate after logged in with webservice
- URLSession requesting JSON array from server not working
- When using onDrag in SwiftUI on Mac how can I detect when the dragged object has been released anywhere?
- Protect OpenAI key using Firebase function
- How to correct error: "Cannot convert value of type 'MyType.Type' to expected argument type 'Binding<MyType>'"?
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Using @Bindable with a Observable type in SwiftUI
- How to make a scroll view of 9 images in a forEach loop open on image 6 if image 6 is clicked on from a grid?
- Using MTLPixelFormat.rgba16Float results in random round-off errors
- Search and highlight text of current text in PDFKit Swift
- How is passing a function as a parameter related to escaping autoclosure?
- Actionable notification api call not working in background
- Custom layout occupies all horizontal space
- Is it possible to fix slow CKAsset loading on Cloudkit?
- Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value - MapView.isMyLocationEnabled
Related Questions in NOTIFICATIONS
- Flutter : How can i make a notifcation that would pop-up every 5 minutes from a given time?
- I do not receive iOS push notifications from Element Matrix Notify
- How can I schedule OneSignal notifications programmatically from a Flutter app
- Notification.permission always return 'denied' on firefox
- flutter notification custom sound not ringing is some OPPO and Huawei devices
- Update Android icon notification in Statusbar regarding a process like download or export on Android 13
- Handling response from Laravel-Notification-Channels/Telegram after message dispatch to channel
- Notification full screen on wear os
- i want to show notification in laravel using ajax
- How to show images in music player's background notification in flutter
- Salesforce: bell notifications are not sent to the approver
- Generating push token for device using expo push-notification in bare react native
- How to print payload data on pressing Action button in Awesome Notifications Flutter
- Open NavigationLink from Local Notification in NavigationStack iOS17
- Require payload format to send the notifications with action buttons like accept/reject using azure notification hub
Related Questions in ICLOUD-DRIVE
- How sync to CloudKit with json file based storage - macOS SwiftUI app
- iCloud Drive REST API
- Offloaded files: Git thinks I've deleted files and added new .icloud files in their place
- Filestack web picker API not recognising files in iCloud Drive on mobile
- Cannot save files to iCloud drive and have it appear in File app
- "brctl evict" and "brctl download" incompatible with Box?
- Unknown platform linking against CloudDocs framework 7
- CNContact object save/upload iCloud
- Can't see my app inside the iCloud Drive folder
- iCloud Drive: NSDocument.revert(toContentsOf:ofType:) called when document is merely opened on another device
- How to backup file to iCloud but not shown in iCloud Drive?
- Uploading file to icloud-documents even if the memory is full it doesn't give any error
- How does the iCloud drive work from a technical standpoint when sharing files between Windows and iOS?
- Unable to click on 'OK' button in the web alert
- Document browser app in iOS 15 keeps creating iCloud drive folder
Related Questions in UBIQUITYCONTAINER
- 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
- iOS iCloud document change notification
- How can I create an app icon folder in the files app and copy items to it?
- iCloud Drive Ubiquity Container Folder not showing
- Accessing image across multiple iOS devices
- Issues with bookmarks of files in ubiquity container on iOS
- Ubiquitous Container is not visible on icloud drive
- NSMetadataQueryDidUpdateNotification, can't get this to work. Code Snippet included
- How to expose and retrieve files in iCloud Drive on iOS8 provided by OS X application
- Why is UbiquityContainer nil if user not logged into iCloud?
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 # Hahtags
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