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
0
votes
1 answer

CloudKit Get actual Object from Record ID in OSX

I am trying to use CKSubscription to subscribe to changes. I am following Apple's docs which seems to be very general and incomplete. Link to Apple Doc I have got the point of getting Record ID sent to my app via the didReceiveRemoteNotification…
UKDataGeek
  • 6,338
  • 9
  • 46
  • 63
0
votes
1 answer

How do i delete cksubscription in Objective-c?

I'm sorry, but I can't find the answer in plain English, or at least every answer I see assumes I have a certain amount of knowledge that must not have. I just need to delete a CKSubscription. How do I do this? All tips and help will be greatly…
Andrew Savage
  • 103
  • 1
  • 7
0
votes
0 answers

CloudKit CKFetchNotificationChangesOperation doesn't fetch notifications received while logged out of iCloud

My app has CKSubscriptions to record changes. When changes occur, a push notification is received, and a CKFetchNotificationChangesOperation is created with the last saved serverChangeToken to retrieve the latest notifications. This all works fine,…
powertoold
  • 1,593
  • 13
  • 19
0
votes
1 answer

CloudKit: CKOperations don't run when app is suspended

I am listening to remote notifications from CKSubscriptions from a CloudKit public database. I want to handle the case where I receive the notifications while the app is suspended ... I simulate this on my device by running the app using Xcode with…
Z S
  • 7,039
  • 12
  • 53
  • 105
0
votes
1 answer

How to parse a CKSubscription userinfo field returned in TVos in swift

I have a CKSubscription running under TvOS that is returning this user info object, when the subscription fires, which is great. But how am I meant to parse this in Swift, surely not by crafting my own parsing routine? userInfo [ck: { ce = 2; cid =…
user3069232
  • 8,587
  • 7
  • 46
  • 87
0
votes
1 answer

Using CloudKit, what does return fetchAllSubscriptionsWithCompletionHandler?

I'm working alone on an app so, when using fetchAllSubscriptionsWithCompletionHandleron my CloudKit database, it returns only my subscriptions. Will it be the same when the app will have more users or does it return all the subscriptions on the…
Armand Grillet
  • 3,229
  • 5
  • 30
  • 60
0
votes
1 answer

CloudKit: query subscriptions request

I'm working in app using CloudKit and I'm creating a subscription to CloudKit. here is my code: CKSubscription *subscription = [[CKSubscription alloc] initWithRecordType:recordType …
user2924482
  • 8,380
  • 23
  • 89
  • 173
0
votes
1 answer

CloudKit subscriptions in the private database

I have an app for which I want to add the possibility to backup data to iCloud using CloudKit. The "backup" part seems to work correctly (my records are in the private database, since they are ... well, private). Now I would like to use…
Frederic Adda
  • 5,905
  • 4
  • 56
  • 71
0
votes
1 answer

CloudKit and CKSubscriptions

I'm addressing a very strange issue about CloudKit and push notifications provided by Apple with CKSubscriptions. Firstly, everything is working fine, I'm able to receive a CKNotification, it worked for some days till I made some changes to the…
Progeny
  • 672
  • 1
  • 11
  • 25
0
votes
1 answer

Analogous service to CloudKit CKSubscription in Google Cloud Datastore?

I've been learning about CloudKit in general and its CKSubscriptions in particular. Since CloudKit and Google Cloud DataStore seem to share many similarities I am wondering this: Is there an analogous service to CKSubscription available for Google…
Drux
  • 11,992
  • 13
  • 66
  • 116
0
votes
1 answer

Is user able to delete CKSubscriptions from Settings?

I am curious wether user can deny subscriptions after it was accepted?
János
  • 32,867
  • 38
  • 193
  • 353
0
votes
2 answers

CloudKit + no valid aps-environment entitlement error

I try to use CloudKit subscriptions in my app, but didReceiveRemoteNotification not get triggered. I saved CKSubscription to CloudKit. To be sure they exists, when app starts, I plot them out, like:
János
  • 32,867
  • 38
  • 193
  • 353
-1
votes
1 answer

iOS Simulator never receives notifications from CloudKit server

Important note: The question is not about simulating notifications, it's about receiving real notifications from CloudKit server and get working sync. Notifications on Simulator never fires, even when app is launched, I just cannot test my app well.…
bodich
  • 1,708
  • 12
  • 31
1 2 3 4
5