2014-02-08 18 views
3

突然间,我通过QuickBlox发送APNS时出现错误,它很奇怪,因为它之前工作得很好。QuickBlox不发送APNS

用户登录后,我使用TRegisterSubscriptionWithDelegate注册它APNS,发送APNS当误差

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

以为这可能是我的应用程序里面的东西,但试图在管理面板发送APNS时,得到了同样的错误:

enter image description here

我上传的.p12证书,它是有效的。

不知道可能发生了什么。任何人都可以告诉我一种解决方法吗?

回答

0

我检查过它并确定这就是问题所在。尽管他们在Apple开发者门户网站上拥有正确的UDID,但我的所有设备都添加了相同的UDID:02:00:00:00:00:00。

enter image description here

iOS 7 pre release

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?如果是,也许这就是问题所在。

由于唯一标识符是deprecated在iOS的7另一种选择是使用identifierForVendor但它有一个不同的值.....你也不能使用TRegisterSubscriptionWithDelegate方法的任何参数(UDID或UUID)。

想知道是否有另一种方法来订阅APNS与QuickBlox的用户。

+1

尝试最新的SDK版本,它不使用MAC地址为此http:// quickblox.com/developers/IOS#Framework_changelog: –

+0

非常感谢! –

0

这意味着您的用户/用户没有订阅Apple推送通知。 也许你取消订阅它们。

要检查用户的设备 - 到用户模块,打开特定的用户和查看该列表http://qblx.co/1iC8Dtg

在这个例子中,你可以看到这个特定的用户从2个iOS设备订阅状态,可以接收推送通知。

+0

伊戈尔Khomenko也许这是因为我正在更新我的应用程序到iOS 7和UDID现在不推荐...请检查我的第二个答案 –