推送通知不适用于分发

发布于 2024-12-07 22:22:31 字数 386 浏览 1 评论 0原文

好吧,现在我的推送通知有问题。我已经成功地将它们设置为开发部分,并且我在我的设备上收到了它们。现在我在应用程序商店中有该应用程序,但无法收到通知。 这是我一步一步所做的:

-我创建了一个用于分发的配置文件,并将其连接到具有用于分发和开发的推送通知的应用程序 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

谜兔 2024-12-14 22:22:31

就在几周前,我也遇到过类似的问题。对我来说,情况是我在 xCode 中留下了几个配置文件。所以我需要做的是:

  • 转到“组织者”->“设备->配置配置文件
  • 为相关应用程序选择我的分发配置文件,然后将其删除。
  • 转到developer.apple.com/iOS
  • 转到分发配置文件,对其进行修改。
  • 只需单击“全选”(这样我就可以在不进行任何更改的情况下重新保存它),在启用推送证书后,需要以某种方式重新创建配置文件
  • 下载新的配置文件并将其安装到
  • 产品 -> 下的 xCode Clean 项目中Clean

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:

  • Go to Organizer -> Devices -> Provisioning Profiles
  • Select my distribution profiles for the app in question, and delete them.
  • Go to developer.apple.com/iOS
  • Go to the distribution profile, modify it.
  • Just clicked "select all" (so I could re-save it with no changes), somehow the profile needed to be re-created AFTER enabling the Push certificate
  • Download the new profile and install it to xCode
  • Clean project under Product -> Clean

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).

时光倒影 2024-12-14 22:22:31

如果使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文