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

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

问题描述

突然,我通过QuickBlox发送APNS时,得到一个错误,它是如此怪异的原因这是很好的工作之前,pretty。

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

之后,发送APNS当误差

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

没有收件人。至少一个用户应认购APNS(苹果
  推)(通过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,尽管它们对苹果开发者门户网站的正确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.

从<一个href=\"https://developer.apple.com/library/$p$prelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS7.html\"相对=nofollow>的iOS 7 pre释放:

在iOS的7和更高版本,如果你问一个iOS设备的MAC地址,
  系统返回值02:00:00:00:00:00。如果您需要
  识别设备上,使用的UIDevice的identifierForVendor财产
  代替。 (需要一个标识符为自己的广告应用程序
  目的应该考虑使用的advertisingIdentifier财产
  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.

由于唯一标识符是<一个href=\"https://developer.apple.com/library/ios/documentation/uikit/reference/UIDevice_Class/De$p$pcationAppendix/AppendixADe$p$pcatedAPI.html#//apple_ref/occ/instp/UIDevice/uniqueIdentifier\"相对=nofollow>德precated 在iOS的7另一种选择是使用<一个href=\"https://developer.apple.com/library/$p$prelease/ios/documentation/UIKit/Reference/UIDevice_Class/Reference/UIDevice.html#//apple_ref/occ/instp/UIDevice/identifierForVendor\"相对=nofollow> identifierForVendor 但它有一个不同的值.....你也不能使用TRegisterSubscriptionWithDelegate方法的任何参数(UDID或UUID)。

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.

知道是否有另一种方式来认购APNS用户QuickBlox。

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

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

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