APNS通知未到达在Apple MDM中注册的设备
苹果MDM被使用。 这是使用APN的MDM。
- mobileconfig的主题与APSP-XXX.pem的主题相同。
- 在设置mobileconfig后,设备令牌和PushMagic的string到达了MDM服务器。
我使用APN发送设备令牌的电报字样。 它由PushMagic的stringreplace。 虽然从MDM服务器通过APN发送{"mdm":"xxxxxxxxxxxxx-xxxx-xxxx-xxxx"}
,但未到达iPhone。
为什么?
按照MDM_Protocol pdf非常仔细。
如果你正在关注这个链接: http : //www.softhinker.com/in-the-news/iosmdmvendorcsrsigning然后validation一些东西。
使用此命令从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证书。
如果仍然有问题,请在此处显示您的设备日志。
这个问题可能是因为两个原因:
- 关键和pem都应该在场。
- 创buildpem时使用的密码应该属于密码使用
我做了一个供应商签名部分的python脚本,所以你不必使用softhinker java代码。