Unable to register subscriptions; CKError 0x19030580, "Service unavailable"

Every time I try to register a subscription, I get an error message: CKError 0x19030580: "Service Unavailable" (6/2022); server message = "refused to install an older schema (68f93710-7456-11e4-b13e-008cfac0c800) since we already have 693359e0-7456-11e4-8e42-008cfac03128"; uuid = 42F42F6B-98FB-4774-B735-271C1AEF07F1; container ID = "iCloud.com.*.*" CKError 0x19030580: "Service Unavailable" (6/2022); server message = "refused to install an older schema (68f93710-7456-11e4-b13e-008cfac0c800) since we already have 693359e0-7456-11e4-8e42-008cfac03128"; uuid = 42F42F6B-98FB-4774-B735-271C1AEF07F1; container ID = "iCloud.com.*.*" CKError 0x19030580: "Service Unavailable" (6/2022); server message = "refused to install an older schema (68f93710-7456-11e4-b13e-008cfac0c800) since we already have 693359e0-7456-11e4-8e42-008cfac03128"; uuid = 42F42F6B-98FB-4774-B735-271C1AEF07F1; container ID = "iCloud.com.*.*" . And when I try to get all the subscriptions that are on the server, I get nothing.

Why am I getting CKError 0x19030580? Why can't I get subscriptions? How to fix them?


the code:

  NSPredicate *truePredicate = [NSPredicate predicateWithValue:YES]; CKSubscription *itemSubscription = [[CKSubscription alloc] initWithRecordType:ItemAssetRecordType predicate:truePredicate options:CKSubscriptionOptionsFiresOnRecordCreation | CKSubscriptionOptionsFiresOnRecordUpdate]; CKNotificationInfo *notification = [[CKNotificationInfo alloc] init]; notification.shouldSendContentAvailable = YES; notification.alertLocalizationKey = @"New Item available."; notification.shouldBadge = NO; itemSubscription.notificationInfo = notification; [self.privateDatabase saveSubscription:itemSubscription completionHandler:^(CKSubscription *subscription, NSError *error) { if (error) { } else { self.subscribedItems = subscription.subscriptionID; } }]; 
+5
source share
3 answers

I have the same problem. One of my posts is not loading. A similar error refused to install an older circuit. Firstly, I thought it was in my code, after 2-3 days I try to solve it, but nothing.

Then I try to reset the iCloud development container (via the iCloud panel). Record again. Then try to start it again. And it works.

I think this is a mistake on the side of Apple. By the way, my affected records are not signed. But you can try.

Tips, you can check if your application is signed first before subscribing. I save the subscription during the subscription process in NSUserDefaults. Then I delete it if the unsubscribe method is called.

+7
source

I had the error "refusal to install the old scheme", but with a simple record, and not with subscriptions. In my case, I wrote a record with a field that was not there. Now I thought that when in the development environment the scheme automatically adds new types of fields, but in any case, when I added it manually using the control panel, it worked.

+1
source

CloudKit sends CKError.serviceUnavailable when a user has disabled iCloud Drive on their device.

0
source

Source: https://habr.com/ru/post/1207645/


All Articles