ckfetchrecordchangesopera

Alternatives to UPDATE notification that does not work

旧城冷巷雨未停 提交于 2020-01-07 03:25:07
问题 UPDATE notification stopped working. What workaround do you have, until Apple figures out something? CKFetchNotificationChangesOperation sometimes does not return UPDATE, DELETE notifications CloudKit push notifications on record update stopped working https://forums.developer.apple.com/thread/7288 My quick fix, that in every minute, and when user triggers UIRefreshControl , then I downloading all the records that were modified since the last update. It works. But I have a better idea in my

How to use CKFetchNotificationChangesOperation?

爱⌒轻易说出口 提交于 2019-12-23 23:33:35
问题 How do I use CKFetchNotificationChangesOperation to handle and direct all missed notifications from a subscribed CKSubscription to the - (void)application:(nonnull NSApplication *)application didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo { in my Mac application? The code I have for that method is as follows, - (void)application:(nonnull NSApplication *)application didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo { NSLog(@"CKSubscription received.");

CloudKit fetchRecordChangesOperation gives a “AppDefaultZone does not support sync semantics”

筅森魡賤 提交于 2019-12-22 04:09:35
问题 I'm using a CKFetchRecordChangesOperation with a CKFetchRecordsChangeToken to grab changes and it is telling me that the "AppDefaultZone does not support sync semantics". Here is the offending code: - (void)downloadServerChangesWithCompletionBlock:(void (^)(NSError *error))completionBlock { // Prepare to fetch remote changes CKDatabase *database = [CKContainer defaultContainer].privateCloudDatabase; CKRecordZoneID *zoneID = [[CKRecordZoneID alloc] initWithZoneName:CKRecordZoneDefaultName

CloudKit fetchRecordChangesOperation gives a “AppDefaultZone does not support sync semantics”

核能气质少年 提交于 2019-12-05 01:48:40
I'm using a CKFetchRecordChangesOperation with a CKFetchRecordsChangeToken to grab changes and it is telling me that the "AppDefaultZone does not support sync semantics". Here is the offending code: - (void)downloadServerChangesWithCompletionBlock:(void (^)(NSError *error))completionBlock { // Prepare to fetch remote changes CKDatabase *database = [CKContainer defaultContainer].privateCloudDatabase; CKRecordZoneID *zoneID = [[CKRecordZoneID alloc] initWithZoneName:CKRecordZoneDefaultName ownerName:CKOwnerDefaultName]; // Initialize fetch record changes operation CKFetchRecordChangesOperation