APNS通知未到达Apple MDM中注册的设备

时间:2012-05-13 11:02:03

标签: ios apple-push-notifications mdm

使用Apple MDM。 它是使用APN的MDM。

  • mobileconfig的主题与APSP-XXX.pem的主题相同。
  • 在设置mobileconfig后,设备令牌和PushMagic的字符串到达​​了MDM服务器。

我使用APN向设备令牌发送了电报的措辞。 它正在被PushMagic的字符串替换。 虽然通过APN从MDM服务器发送{"mdm":"xxxxxxxxxxxxx-xxxx-xxxx-xxxx"},但未到达iPhone。

为什么?

3 个答案:

答案 0 :(得分:2)

非常谨慎地关注MDM_Protocol pdf。

如果您关注此链接:http://www.softhinker.com/in-the-news/iosmdmvendorcsrsigning 然后验证一些事情。

使用此命令从customerPrivateKey.pem中删除密码短语

openssl rsa -in customerPrivateKey.pem -out PlainKey.pem

然后使用此命令合并从门户网站https://identity.apple.com/pushcert/下载的APNS证书(例如CustomerCompanyName.pem)

cat CustomerCompanyName.pem PlainKey.pem > PlainCert.pem

现在,这个PlainCert.pem文件可以在您的服务器中用作APNS / MDM证书。

如果仍有问题,请在此处显示您的设备日志。

答案 1 :(得分:0)

问题可能是因为两个原因:

  1. key和pem都应该存在。
  2. 使用的密码应该属于创建pem时使用的密码

答案 2 :(得分:0)

我制作了一个执行供应商签名部分的python脚本,因此您不必使用softhinker java代码。

https://github.com/grinich/mdmvendorsign