推送通知不适用于分发
好吧,现在我的推送通知有问题。我已经成功地将它们设置为开发部分,并且我在我的设备上收到了它们。现在我在应用程序商店中有该应用程序,但无法收到通知。 这是我一步一步所做的:
-我创建了一个用于分发的配置文件,并将其连接到具有用于分发和开发的推送通知的应用程序 ID。
-我已经使用该配置文件构建了用于分发的应用程序。
-我已在应用商店提交了应用程序。
-现在我在钥匙串中有 2 个证书访问 Apple Production IOS Push Service:AppID 和 iPhone Distribution:CompanyName
-我已经从两者制作了 .pem 文件并用两者进行了测试。没有收到通知,
我真的不知道该尝试什么以及如何解决这个问题。
Ok now I have a problem with the push notifications. I have set them successfully for the developing part and I was receiving them on my device. Now I have the application on app store and I cant receave notifications.
This is step by step what I did:
-I have created a provisioning profile for distribution and connected it to the app id that has push notifications for distribution and development.
-I have built the app for distribution with that provisioning profile.
-I have submitted the app on app store.
-Now I have 2 certificates in keychain access Apple Production IOS Push Service:AppID and iPhone Distribution:CompanyName
-I have made .pem file from both and tested it with both. No notification has arrived
I really have no idea what to try and how to fix this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
就在几周前,我也遇到过类似的问题。对我来说,情况是我在 xCode 中留下了几个配置文件。所以我需要做的是:
Now 我制作了一个新版本并对其进行了测试并且它有效。也许这也适合你。
编辑
此答案中的红线是,当启用应用程序中的推送通知时,需要重新完成配置文件(尽管从肉眼看来没有任何变化)。
I have had similar problems, just a few weeks ago. For me the case was that I had several provisioning profiles left in xCode. So what I needed to do was:
Now I made a new release and tested it and it worked. Maybe this workes for you as well.
Edit
The red-thread in this answer is that when Push notification in the App is enabled, the provisioning profiles need to be re-done (even though, to the eye there are no changes).
如果使用 Parse,请确保您已上传 iOS 生产证书。我遇到了这个问题,一周后发现我只将我的 iOS 开发证书上传到服务器。
设置>推> Apple 推送证书
您需要查看证书类型为 iOS Production 并具有有效到期日期的证书。
If using Parse, make sure you have uploaded your iOS Production Certificate. I ran into this issue and discovered a week later that I had only uploaded my iOS Development Certs to the server.
Settings > Push > Apple Push Certificates
You need to see something that has a Certificate Type of iOS Production with a valid expiration date.