2017-04-17 78 views
0

我尝试使用“开发SSL证书”或沙箱发送推送通知.p12证书iPhone能够接收发送的通知来自MobileFirst Operations Console。生产推送通知.p12生产证书不适用于企业分发应用程序(应用商店外)

但是,当我将沙箱.p12 cert替换为生产沙箱时,我无法收到推送通知。我甚至删除了设备应用程序,从注册列表中删除设备并重新注册设备。但我仍然得到相同的结果。

是否需要其他设置?

MFP服务器版本为 “产品版本:8.0.0.00-20170220-1900”

enter image description here

enter image description here

enter image description here

enter image description here

更新:

从这个MobileFirst tutorial Link “的APNS生产许可证只能使用一次,利用它已成功提交到苹果App Store应用程序进行测试。”

在应用商店以外的房屋分配应用程序/“保存企业部署”方面呢?

回答

0

如果您正在从xcode 8.0或更高版本部署应用程序,请确保从项目目标的功能选项卡启用了推送通知功能。 enter image description here

如果您从xcode 8或更高版本部署您的应用程序,这应该是。

+0

这个设置已经到位。更新我的问题与此设置的屏幕截图 – user1872384

0

要发送推送通知,下面的服务器必须从MobileFirst服务器实例访问:

沙盒服务器:

  • gateway.sandbox.push.apple.com: 2195
  • feedback.sandbox.push.apple.com:2196

生产服务器:

  • gateway.push.apple.com:2195

  • Feedback.push.apple.com:2196

  • 1- courier.push 。苹果。COM 5223

  • 在开发阶段,使用APNS证书,sandbox.p12沙箱证书文件。

  • 在生产阶段,使用apns-certificate-production.p12生产证书文件。

参考:https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/notifications/sending-notifications/#apple-push-notifications-service

+0

我使用本地mfp服务器......我怀疑这是因为端口。 – user1872384

+0

检查服务器是否从您的系统上运行?从命令行ping服务器url并检查。 –

+0

如何执行检查。对于本地服务器,沙箱证书正在工作,生产证书没有。 – user1872384

相关问题