Post

Replies

Boosts

Views

Activity

queryDidReceiveNotification not being called (iOS 14 only)
I have an app that can run on iPhones and iPads. Prior to iOS 14, when the app running on one device writes to iCloud Drive the app running on the other device would receive a queryDidReceiveNotification (setup using NSMetadataQuery). This is no longer the case. Again this worked flawlessly prior to iOS 14. Interestingly if I do a contentsOfDirectoryAtPath for that iCloud location the new file added by the other device is not included. BUT if the device (the device not seeing the file or receiving the notification) then adds something to that location and then subsequently does a contentsOfDirectoryAtPath the new file magically is included in the list of files. Has anyone else encountered this or is aware of a bug in iOS 14 which does not send a notification out. It is almost like there is some cache being used under iOS 14 that is not being refreshed properly (also resulting in the lack of notification via queryDidReceiveNotification for an outstanding NSMetaDataQueary).
8
0
1.7k
Oct ’20