Posts

Post not yet marked as solved
0 Replies
182 Views
In the iOS App Dev Tutorial > Updating app data > Use the edit view to create a new scrum" section at the end there is a Challenge: "Try refactoring DetailView to follow a similar pattern, and use a separate structure when presenting the edit sheet." Can someone please help me refactor DetailView in the way that is stated? How can I initiate a @State property that is the scrum that was selected to edit?
Posted
by swiftic.
Last updated
.
Post not yet marked as solved
1 Replies
422 Views
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.
Posted
by swiftic.
Last updated
.