Quickblox 推送通知失败

Quickblox push notification failed

我正在使用 Quickblox 聊天应用程序。处理聊天的推送通知。我已将 APNs 开发证书上传到 Quickblox。我已经通过代码完成订阅,它在 Quickblox 管理部分显示了我的设备。但是当我试图通过管理面板发送推送通知时,推送通知没有出现。我正在选择 "Testing" 环境和 "IOS" 频道,它显示:

"Success Apns channel. Notification has been successfully added to queue."

但是通知不会出现在设备上。在队列部分显示:

APNS (Apple Push) Delivered: 0, failed: 1
Download detailed log
Event log
2016-03-21 06:50:34 UTC : queued 1 notifications

在详细日志中显示:

{"notification":{"aps":{"alert":"msg","sound":"default"}},"log":[{"device_token":"my token","created_at":"2016-03-23T04:48:04Z","delivered_at":null,"failed_at":"2016-03-23T04:48:51Z","error_code":8,"error_description":"Invalid token (8)"}]}

要注册,我正在使用此代码:

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
    NSString *deviceIdentifier = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
    [QBRequest registerSubscriptionForDeviceToken:deviceToken uniqueDeviceIdentifier:deviceIdentifier
                                     successBlock:^(QBResponse *response, NSArray *subscriptions)
    {
        NSLog(@"Successfully Registered......");
    }
                                       errorBlock:^(QBError *error)
    {
        NSLog(@"Error ------> %@", error);
                                     }];
}

它显示 "Successfully Registered......" 我也可以在管理部分看到它。 请帮助我..

使用新密钥和新开发证书再次创建新的 P12 证书。然后我收到了推送通知。