Post

Replies

Boosts

Views

Activity

Reply to Live Activity Not Working on Physical Device
if the ActivityWidget is the only widget in bundle, the Dynamic Island and Live Activities in lock screen works normally. But if I included other widgets in the widget bundle, the Dynamic Island and Live Activities will not show, and other widgets works normally Workaround: create a new Widget Extension target and isolate your Live Activity Widget there
Nov ’22
Reply to Which way to get currently logged in user in iOS?
CKContainer.fetchUserRecordID() executes the operation and fetches the record. CKFetchRecordsOperation.fetchCurrentUserRecordOperation() is a class function used to generate a CKOperation, which when executed would fetch you the record. But has an additional requirement: You must associate at least one progress handler with the operation object (docs) You probably want to go with the first one.
Aug ’22
Reply to iOS 15.2 beta 3 - subscriptions not triggered?!
Apple, it looks that you have a problem with subscriptions created via async/await methods. Apple GitHub account has CloudKit sample code. “CloudKit Samples: Private Sync with Subscriptions and Push“ provides 2 branches: “main“ uses CKOperations to communicate with private CKDatabase - https://github.com/apple/cloudkit-sample-privatedb-sync/tree/main “concurrency” uses async/await methods to communicate with private CKDatabase - https://github.com/apple/cloudkit-sample-privatedb-sync/tree/swift-concurrency Other than that the code is essentially the same. (NOTE: To run the concurrency version, one has to update database.modifySubscriptions method to include the “deleting“ parameter.) Subscriptions are NOT TRIGGERED for the async/await version on a device running iOS 15.2 beta 3 and 4. At least now I know I am not crazy. I'm going to ditch the async/await CloudKit methods.
Dec ’21
Reply to iOS 15.2 beta 3 - subscriptions not triggered?!
Problem still present on a device with 15.2 beta 4. Things I've tried in the meantime: resetting the Development environment from CloudKit Dashboard, deleting and reinstalling the app tried using a different CloudKit Container tried switching between manual and automatic provisioning profiles No changes. Meanwhile, a 15.1 device still happily working correctly, getting notified, working as intended FB9767755, includes a device sysdiagnose as well
Dec ’21
Reply to How to delete container in CloudKit Dashboard?
How many of you would be satisfied with being able to hide the containers from your list, without actually having them deleted? Asking because it looks like Apple's never going to allow us to delete them (this thread is at least 5 years old), but it might not be such a big deal to Apple to let us hide unneeded containers on the UI level. If you think you'd be happy with that kind of solution, please upvote this answer and/or add a comment for it, because I am not quite sure we can see the upvote count :) Should the upvotes show this concept would help a lot of you, I'll work up the UX details and a template for filing the Feedback, which we can all copy-paste-submit and be loud enough to get Apple's attention about this feature. We can all end up with cleaner lists of containers (yay) and all the containers can still be there, which I suspect Apple will have no qualm with.
Nov ’21