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
Topic: App & System Services SubTopic: Core OS Tags:
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.
Topic: App & System Services SubTopic: Core OS Tags:
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.
Topic: App & System Services SubTopic: iCloud Tags:
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
Topic: App & System Services SubTopic: iCloud Tags:
Dec ’21
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
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
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.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
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.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
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
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Dec ’21