I manage to save, modify and delete entries in Apples CloudKit. I even received notifications working with subscriptions that I canβt find out how I can list all subscriptions for the current user.
Here is my code:
let operation = CKFetchSubscriptionsOperation()
operation.fetchSubscriptionCompletionBlock = { (d, e) -> Void in
println("got subscription")
if e != nil {
println("Error")
dump(e)
}
dump(d)
}
publicDatabase.addOperation(operation)
I got:
got subscription
Error
- <CKError 0x14db0ed0: "Invalid Arguments" (12)> #0
- 0 key/value pairs
What are the invalid arguments? And how do I get a list of all saved subscribers?
source
share