解析推送通知 iOS [英] Parse Push Notification iOS

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

问题描述

我在 Parse.com 上完成了 Push 的事情(它工作正常)然后我被问到为公司创建一个解析帐户并设置它们,以便他们可以自己管理它.好吧,没有意识到网站上有一个导出按钮,我删除了我帐户中的应用程序并为他们创建了一个帐户并将该应用程序添加到他们的帐户中.我添加了所有正确的证书并更新了应用程序和客户端密钥,但它不会发送它,并且在推送通知选项卡上,它会显示我有收件人(我的测试设备)但是当我点击发送时,它会说完成,但我的设备上不会出现任何内容.所以,不太聪明,我删除了那个应用程序并在我的帐户上重新创建它(认为另一个帐户可能有问题).那么现在它甚至无法在我的帐户上工作.我已经创建了所有新证书和所有内容,但我无法弄清楚为什么它不起作用.再次,在推送通知选项卡上,它会显示我有收件人(我的测试设备)但是当我点击发送时,它会说完成,但我的设备上不会出现任何内容.有帮助吗?

I had the Push thing done over with at Parse.com (It was working and all) and then I was asked to create an account on parse for the company and set them up so they can manage it on their own. Well, not realizing that there was a Export button on the website, I deleted the app on my account and created an account for them and added the app to their account. I added all of the correct Certs and updated the App and Client keys and it wouldn't send it,and On the Push Notifications tab, it will show that i have recipients (My test Devices) but when I hit send, it will say Done, but nothing will appear on my device. So, being not too smart, I deleted that app and recreated it on my account (Thinking there might be something wrong with the other account). Well now it won't even work on my account. I have created all new certs and everything and i can't figure out why it is not working.And again, On the Push Notifications tab, it will show that i have recipients (My test Devices) but when I hit send, it will say Done, but nothing will appear on my device. Help?

我想到的可能是设备正在记住旧帐户的 APNS 权限,我是对的吗?

My thought about what it might be is that the device is remembering the APNS Permission from the old account, Could I be Right?

推荐答案

我不久前遇到了这个问题.对我来说,这是开发人员版本和发布版本之间的区别.您将在 Apple 的配置门户中看到,您可以为您的应用程序设置 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.

所以...确保您已将正确的推送证书上传到 Parse.就我而言,Parse 会说消息已发送到设备,但我从未看到它们通过,因为 Parse 将它们发送给 Apple 的证书与我的特定构建类型不匹配.

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.

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

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