iOS Enterprise developer Account: get device token

£可爱£侵袭症+ 提交于 2019-11-29 21:08:50

First of all MDM push notification implementation is different than push notification for third party iOS application.

1)You have to use iOS Enterprise account for MDM push notification and there are few steps to get APNS certificate. 1.Refer MDM_Protocol and follow this link: http://www.softhinker.com/in-the-news/iosmdmvendorcsrsigning Then verify few things.

remove the passphrase from customerPrivateKey.pem using this command

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

Then merge your APNS certificate (for example CustomerCompanyName.pem) downloaded from the portal https://identity.apple.com/pushcert/ using this command

cat CustomerCompanyName.pem PlainKey.pem > PlainCert.pem

Now this PlainCert.pem file can be used in your server as APNS/MDM certificate.

2)In MDM push notification there are three keys

• PushMagic - a unique token the MDM server sends with each push request

• Token - a unique token that identifies the device to the APNS service

• UnlockToken - an escrow key used to clear the passcode on the device.

MDM push notification payload is also different than push notification payload.It should look like this:

{"aps":{},"mdm":PushMagic}

Take a look at http://urbanairship.com/ its a great service for handling push notifications and you can easily send test push notifications to any registered device.

Also this tutorial: http://mobile.tutsplus.com/tutorials/iphone/iphone-sdk_apns/ was an awesome resource for me in setting up push notifications with my app.

For your first question - yes you can. In the iOS dev site, go to provisioning portal > app ID's and enable you app for push notifications(dev or production).

Abstractec

1) see this answer

2) not for the MDM push token - this is sent to the MDM server during the 'check-in' procedure.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!