I have set up a CKQuerySubscription
in the default zone that sends a Push notification every time a record meeting the given criteria is deleted in a public CloudKit database. However, the notification is only sent when I delete the record via the CloudKit Dashboard and not when I delete a record programmatically.
I have tried creating a record with User A on a device and then having that record deleted by User B on a different device but it doesn't result in User A getting notified.
Additionally, the only case where the notification gets sent is on a device that is signed in with the iCloud account that I use for CloudKit Console. In other words, when I delete a record that was created by a user with a different iCloud account than the one I use for the CloudKit Console the notification does not get sent to that device - it's only successful on the device with the CloudKit Console iCloud account.
What I expect to happen is the subscription to fire when the record in question is deleted regardless of how and by whom it is deleted. Is this possible?
Any help would be appreciated.