Questions tagged [cksubscription]

Use a CKSubscription object to track changes occurring on the server. A subscription acts like a persistent query on the server that can track the creation, deletion, and modification of records. When changes occur, they trigger the delivery of push notifications so that your app can respond appropriately.

Use a CKSubscription object to track changes occurring on the server. A subscription acts like a persistent query on the server that can track the creation, deletion, and modification of records. When changes occur, they trigger the delivery of push notifications so that your app can respond appropriately.

73 questions
19
votes
1 answer

How to make remote notifications work with CloudKit Subscriptions?

So far I was unable to make subscriptions to work. (receive a push notification on my device, subscriptions appears to be created successfully) I have been playing with [CloudKitAtlas][1]. I did what it's told on the readme for that…
dev_jac
  • 825
  • 9
  • 17
18
votes
1 answer

Not receiving CloudKit push notifications

I'm writing a small app that uses CloudKit. For some reason the app doesn't receive any notifications when there's a new record matching the query. Has anyone been able to get this feature to work? I create new records in the app, but also in the…
TotoroTotoro
  • 17,524
  • 4
  • 45
  • 76
10
votes
2 answers

How to set up a minimal CKSubscription?

I want to set up a simple CKSubscription that notifies me a recordType was created, how?
János
  • 32,867
  • 38
  • 193
  • 353
9
votes
1 answer

How can each iCloud user save a user specific subscription in CloudKit?

I’m having an issue creating subscriptions in a public CloudKit database. The code works fine when saving the subscription for the first iCloud user but fails trying to save a slightly different subscription against the same record type for a second…
rmaddy
  • 314,917
  • 42
  • 532
  • 579
9
votes
3 answers

CloudKit subscription sometimes does not work

If I try subscribe to CloudKit with this code: NSPredicate *truePredicate = [NSPredicate predicateWithValue:YES]; CKSubscription *itemSubscription = [[CKSubscription alloc] initWithRecordType:RecordType …
Mikhail S
  • 3,338
  • 3
  • 21
  • 34
8
votes
1 answer

Observe CKRecord deletion via CKSubscription does not work

CKSubscription doc says: When a record modification causes a subscription to fire, the server sends push notifications to all devices with that subscription except for the one that made the original change to the record. Let assume I have two…
János
  • 32,867
  • 38
  • 193
  • 353
7
votes
1 answer

Are silent remote push notifications deprecated in iOS 11?

Currently I'm able to receive silent push using app delegate's didReceiveRemoteNotification method. That method is deprecated and according to this we're supposed to be switching to UNUserNotificationCenter's willPresent method, but I can't seem to…
7
votes
2 answers

CloudKit won't reset my badge count to 0

I've tried a number of things and can't seem to reset the badge count from notifications comings from cloudKit. Has anyone else ran into this problem. Here is what I've tried: 1) Set the badge count locally to 0 …
6
votes
2 answers

How to initialize a CKSubscription in iOS 10.3

I am building an app that needs to subscribe to record changes in the public database of iCloud. Now, after watching the apple video's and reading their documentation, I decided to get to work. However, I immediately got stuck here: All…
Joris416
  • 4,751
  • 5
  • 32
  • 59
6
votes
0 answers

CloudKit subscriptions for CKSubscriptionOptionsFiresOnRecordUpdate not working

I create a subscription for create and update. Creation always works perfect and I get push notifications from other devices. Update goes to iCloud, you can see them there, but push notifications are not delivered to the device. -…
6
votes
1 answer

CloudKit push notifications on record update stopped working

EDIT: Retested today 27.08.2015 and it works again, Apple has fixed it. I have an application in development mode. The application uses CKSubscription to get notified on changes on the server, configured for all three options: create, update,…
Lubos Ilcik
  • 2,176
  • 1
  • 16
  • 12
5
votes
1 answer

CloudKit. Problems with subscriptions

I do not quite understand the information about subscriptions. I have Private Database. There is a table to which I create a subscription. If I subscribe to two devices under one iCloud account, errors occur: Subscribed with error: CKError…
Mikhail S
  • 3,338
  • 3
  • 21
  • 34
4
votes
2 answers

CloudKit Subscription Notification for CKReference Not Working As Expected

I'm trying to setup a CKSubscription for records that contain a field with a CKReference to the user. But anytime a record is created, it ignores this part of the compoundPredicate and the notification never comes. Is there something different…
Renee Olson
  • 267
  • 1
  • 15
3
votes
1 answer

didReceiveRemoteNotification not being called on MacCatalyst

When I create a CKSubscription, didReceiveRemoteNotification gets called on iOS just fine but not on MacOS. I came across a 2015 SO thread talking about a bug and the suggested workaround was to set the notification info's soundName to an empty…
rs7
  • 1,618
  • 1
  • 8
  • 16
3
votes
0 answers

CKSubscription push notification limits before stop calling didReceiveRemoteNotification

I have a CloudKit app on iOS 11.4.1 with frequent record updates through CKSubscriptions. I've found that there's a limit to the # of push notifications received before the device stops receiving any notifications for an extended period (30 mins to…
powertoold
  • 1,593
  • 13
  • 19
1
2 3 4 5