fetchAllSubscriptionsWithCompletionHandler returns empty array.

Originator:junji.okada
Number:rdar://23159812 Date Originated:19-Oct-2015 08:54 AM
Status:Open Resolved:
Product:iCloud Product Version:
Classification: Reproducible:
 
Summary:
We have saved the subscriptions by saveSubscription and received the remote notifications. But fetchAllSubscriptionsWithCompletionHandler() returns nil. This function worked well a few weeks ago.

Steps to Reproduce:
            let database: CKDatabase! = CKContainer.defaultContainer().publicCloudDatabase
            database.fetchAllSubscriptionsWithCompletionHandler({(
                subscriptions, error) in
                print("\(subscriptions)")
                })


Expected Results:
list of saved notifications

Actual Results:
Optional([])

Version:
jun@becomingsystems.com
iOS 8.0 above

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!