且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

解析推送通知的iOS

更新时间:2023-02-16 22:15:37

我遇到了这个而回。对我来说,这是差异之间的开发人员构建和发布版本。您可以在苹果的供应门户网站看到,有2个可以设置为你的应用程序推送证书。一个是产能的释放,另一种是为开发人员测试。当你建立你的应用程序进行测试,它会自动查找开发人员认证。当你做一个发布版本它看起来释放证书。

I ran into this a while back. For me it was the difference between developer builds and release builds. You'll see in Apple's provisioning portal that there are 2 push certificates you can set up for your app. One is for production release and the other is for developer testing. When you build your app for testing it automatically looks for the developer cert. When you do a release build it looks for the release cert.

所以...请确保您上传了正确的推证书解析。以我为例解析会说,消息已被发送到设备,但是我从来没有看见他们来通过,因为解析是他们不匹配我的具体构建类型的证书发送给苹果公司。

So... Make sure you have uploaded the correct push certificate to Parse. In my case Parse would say that messages had been sent to devices but I never saw them come through because Parse was sending them to Apple with a certificate that did not match my particular build type.