CKSubscription generates an error even though I'm able to receive remote CK pushes

Originator:george
Number:rdar://17590479 Date Originated:08-Jul-2014 12:34 PM
Status:Closed (resolved) Resolved:Yes
Product:CloudKit Product Version:
Classification: Reproducible:Always
 
Summary:
When I subscribe to CloudKit CKSubscription, I get an error as follows:

2014-07-08 12:24:53.655 CloudKitTest[455:92919] SUBSCRIPTION ERROR! <CKError 0x15629430: "Server Rejected Request" (15/2032); "Error saving record subscription with id 4B8AE952-B571-441A-8E69-BB4D9B8EA4EF to server: (null)"; uuid = 128A9D96-C75E-441A-ADDB-C2E205C66360; container ID = "iCloud.br.com.cocoaheads.CloudKitTest">

But even getting this error, I'm still able to get remote pushes from CloudKit, like the payload below:

{
    aps =     {
        alert =         {
            "loc-key" = "LOCAL_NOTIFICATION_KEY";
        };
    };

    ck =     {
        ce = 2;
        cid = "iCloud.XXXXX";
        nid = "21810bc5-8589-417e-92fb-21937865b9c9";
        qry =         {
            dbs = 2;
            fo = 1;
            rid = "tuitando ";
            zid = "_defaultZone";
            zoid = "_defaultOwner";
        };
    };
}

So why am I getting this error message?

Code attached.

Steps to Reproduce:


Expected Results:


Actual Results:


Version:
iOS 8 b3 with xcode 6 beta 3

Notes:


Configuration:


Attachments:
'CloudKitTest.zip' was successfully uploaded.

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!