Closed a821246710 closed 8 years ago
It appears that SKYDatabase does not set the registered Device ID to subscription operations, therefore -[SKYDatabase saveSubscription:]
does not work because there is no Device ID in the operation object.
There seems to be no test case for that -saveSubscription:
.
Please use SKYModifySubscriptionOperation
for the time being. We will fix this later.
and when I use SKYQuery to build SKYRecordStorage, I also got no Device ID
subscribe query error
@limouren
error message :
Failed to subscribe for my todo: Error Domain=SKYOperationErrorDomain Code=108 "The server is unable to process the data." UserInfo={arguments=<CFArray 0x125dae0f0 [0x19fcfa150]>{type = immutable, count = 1, values = ( 0 : device_id )}, NSErrorFailingURLKey=https://todolist.skygeario.com/subscription/save, SKYErrorMessage=empty device_id, SKYErrorName=InvalidArgument, SKYOperationErrorHTTPStatusCodeKey=400, NSLocalizedDescription=The server is unable to process the data.}