【问题标题】:iOS Push Notification - not working in productioniOS推送通知 - 不适用于生产
【发布时间】:2018-06-27 20:52:43
【问题描述】:

我能够在开发中测试推送通知,但它在生产模式下不起作用。我已经完成的步骤如下:

  1. 我已经有 App ID,在推送通知下点击编辑和创建证书:

  2. 这是我生产的 Apple Push Service 证书,下载并双击它,它出现在 Keychain-> Exported certificate: saved .p12 file:

  3. 重新下载生产配置文件并双击它。在配置文件中启用了推送通知。
  4. 将 Entitlement.plist 环境更改为生产环境:
  5. 在 Visual Studio 中更改了 Info.plist 中的捆绑 ID,并将签名 ID 设置为分发并设置生产配置文件。重建项目并将 .IPA 文件上传到 iTunesConnect 并使用 TestFlight 分发。 没有收到任何推送通知。请帮助我做错了什么或错过了什么?

【问题讨论】:

  • 为什么要更改捆绑 ID?
  • 我们对 dev、prod 和 staging 使用不同的 bundle id。

标签: ios xamarin.ios apple-push-notifications


【解决方案1】:

还要更改通知提供程序中的 Apple Push Service .p12 证书。

【讨论】:

  • 谢谢!!!我必须更改我的 WebConfig 文件以指向产品证书并将 ApnsEnvironment 更改为产品。 :)
猜你喜欢
  • 1970-01-01
  • 2014-05-08
  • 2023-03-04
  • 2017-05-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多