Jedes Mal, wenn ich versuche, das Abonnement zu registrieren, erhalte ich den Fehler: 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.*.*"
. Und wenn ich versuche, alle Abonnements, die auf dem Server sind, zu erhalten, erhalte ich nichts.Abonnements können nicht registriert werden. CKError 0x19030580, "Service nicht verfügbar"
Warum erhalte ich CKError 0x19030580? Warum kann ich keine Abonnements abrufen? Wie soll ich sie reparieren?
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;
}
}];
So Leute sind klar: * "... wenn ich versuche, alle Abonnements, die auf dem Server sind, bekomme ich nichts" * - bedeutet das, es gelingt, aber Sie bekommen nichts zurück? Oder scheitert es mit einem Fehler? – jww