QuickBlox 不发送 APNS [英] QuickBlox not sending APNS

查看:26
本文介绍了QuickBlox 不发送 APNS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在通过 QuickBlox 发送 APNS 时突然出现错误,这很奇怪,因为它之前运行良好.

Suddenly I'm getting an error when sending APNS through QuickBlox, and it's so weird cause it was working pretty well before.

用户登录后,我使用 TRegisterSubscriptionWithDelegate 将其注册到 APNS,当发送 APNS 时,错误是

After user is logged i'm using TRegisterSubscriptionWithDelegate to register it for APNS, when sending APNS the error is

没有收件人.至少应为一名用户订阅 APNS(Apple推送)(通过 SDK 或 REST API)

No recipients. At least one user should be subscribed for APNS (Apple Push) (through SDK or REST API)

认为它可能是我的应用程序内部的某些东西,但是当尝试在管理面板中发送 APNS 时,得到了同样的错误:

Thought it could be something inside my app but when trying to send APNS in admin panel, got the same error:

我已经上传了 .p12 证书并且它是有效的.

I've uploaded .p12 certificate and it's valid.

不知道会发生什么.谁能告诉我解决方法?

Have no idea what may be happening. Anyone could show me a way to fix it?

推荐答案

我已经检查过了,确定这就是问题所在.我的所有设备都添加了相同的 UDID:02:00:00:00:00:00,尽管它们在 Apple Developer 的门户上拥有正确的 UDID.

I’ve checked it and for sure that’s the problem. All my devices are being added with same UDID: 02:00:00:00:00:00 despite they have their correct UDID on Apple Developer’s portal.

来自 iOS 7 预发布:

在 iOS 7 及更高版本中,如果您询问 iOS 设备的 MAC 地址,系统返回值 02:00:00:00:00:00.如果你需要识别设备,使用 UIDevice 的 identifierForVendor 属性反而.(需要为自己的广告提供标识符的应用程序目的应该考虑使用 adsIdentifier 属性ASIdentifierManager 代替.)

In iOS 7 and later, if you ask for the MAC address of an iOS device, the system returns the value 02:00:00:00:00:00. If you need to identify the device, use the identifierForVendor property of UIDevice instead. (Apps that need an identifier for their own advertising purposes should consider using the advertisingIdentifier property of ASIdentifierManager instead.)

QuickBlox 是否使用 MAC 地址来访问设备的 UDID?如果是,也许这就是问题所在.

Does QuickBlox use MAC address to have access to device's UDID? If yes maybe that's the problem.

因为 uniqueIdentifier 是 已弃用 在 iOS 7 中另一个选项是使用 identifierForVendor 但它有一个不同的值......你也不能使用任何参数(UDID或 UUID)在 TRegisterSubscriptionWithDelegate 方法中.

Since uniqueIdentifier is deprecated in iOS 7 another option is use identifierForVendor but it has a different value.....also you can't use any parameter (UDID or UUID) in TRegisterSubscriptionWithDelegate method.

想知道是否有另一种方式可以通过 QuickBlox 为用户订阅 APNS.

Wondering if there's another way to subscribe users for APNS with QuickBlox.

这篇关于QuickBlox 不发送 APNS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆