Ios 在quickblox中订阅时无法处理的实体

Ios 在quickblox中订阅时无法处理的实体,ios,quickblox,quickblox-android,Ios,Quickblox,Quickblox Android,我正在尝试订阅推送通知。我正在使用此代码,但显示以下错误。告诉我如何解决这个问题 NSString *deviceIdentifier = [[[UIDevice currentDevice] identifierForVendor] UUIDString]; // New way, only for updated backends // QBMSubscription *subscription = [QBMSubscription subscription]; subscription

我正在尝试订阅推送通知。我正在使用此代码,但显示以下错误。告诉我如何解决这个问题

NSString *deviceIdentifier = [[[UIDevice currentDevice] identifierForVendor] UUIDString];

//  New way, only for updated backends
//
QBMSubscription *subscription = [QBMSubscription subscription];
subscription.notificationChannel = QBMNotificationChannelAPNS;
subscription.deviceUDID = deviceIdentifier;
subscription.deviceToken = deviceToken;

[QBRequest createSubscription:subscription successBlock:^(QBResponse *response, NSArray *objects) {

    NSLog(@"Successfully!");

} errorBlock:^(QBResponse *response) {

}];
错误是:

"Access-Control-Allow-Origin" = "*";
"Cache-Control" = "no-cache";
Connection = "keep-alive";
"Content-Length" = 45;
"Content-Type" = "application/json; charset=utf-8";
Date = "Thu, 11 Feb 2016 09:04:28 GMT";
"QB-Token-ExpirationDate" = "2016-02-11 11:04:28 UTC";
"QuickBlox-REST-API-Version" = "0.1.1";
Server = "nginx/1.6.2";
Status = "422 Unprocessable Entity";
"X-Rack-Cache" = "invalidate, pass";
"X-Request-Id" = abeab57301c1210afb8d01a6f23d7f47;
"X-Runtime" = "0.119512";
"X-UA-Compatible" = "IE=Edge,chrome=1";

我有类似的代码,没有问题。
delegate.deviceToken被选中为非空

QBMSubscription* qbm = [QBMSubscription subscription];
qbm.deviceUDID = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
qbm.deviceToken = delegate.deviceToken;
qbm.notificationChannel = QBMNotificationChannelAPNS;

[QBRequest createSubscription:qbm successBlock:^(QBResponse * _Nonnull response, NSArray<QBMSubscription *> * _Nullable objects) {
     NSLog(@"createSubscription.success");
} errorBlock:^(QBResponse * _Nonnull response) {
     NSLog(@"createSubscription.error=%@", response.error.description);
}];
QBMSubscription*qbm=[QBMSubscription];
qbm.deviceUDID=[[UIDevice currentDevice]标识用于供应商]UUIString];
qbm.deviceToken=delegate.deviceToken;
qbm.notificationChannel=QBMNotificationChannelAPNS;
[QBRequest createSubscription:qbm successBlock:^(QBResponse*\非空响应,NSArray*\可空对象){
NSLog(@“createSubscription.success”);
}errorBlock:^(QBResponse*_非空响应){
NSLog(@“createSubscription.error=%@”,response.error.description);
}];

我有类似的代码,没有问题。
delegate.deviceToken被选中为非空

QBMSubscription* qbm = [QBMSubscription subscription];
qbm.deviceUDID = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
qbm.deviceToken = delegate.deviceToken;
qbm.notificationChannel = QBMNotificationChannelAPNS;

[QBRequest createSubscription:qbm successBlock:^(QBResponse * _Nonnull response, NSArray<QBMSubscription *> * _Nullable objects) {
     NSLog(@"createSubscription.success");
} errorBlock:^(QBResponse * _Nonnull response) {
     NSLog(@"createSubscription.error=%@", response.error.description);
}];
QBMSubscription*qbm=[QBMSubscription];
qbm.deviceUDID=[[UIDevice currentDevice]标识用于供应商]UUIString];
qbm.deviceToken=delegate.deviceToken;
qbm.notificationChannel=QBMNotificationChannelAPNS;
[QBRequest createSubscription:qbm successBlock:^(QBResponse*\非空响应,NSArray*\可空对象){
NSLog(@“createSubscription.success”);
}errorBlock:^(QBResponse*_非空响应){
NSLog(@“createSubscription.error=%@”,response.error.description);
}];

在错误块中打印[response.error reasons],您将看到请求失败的确切原因。在错误块中打印[response.error reasons],您将看到请求失败的确切原因。