First of all, the MDM push notification implementation is different from the push notification for a third-party iOS application.
1) You must use your iOS Enterprise account to notify MDM push, and there are several steps to get an APNS certificate. 1.Refer MDM_Protocol and follow this link: http://www.softhinker.com/in-the-news/iosmdmvendorcsrsigning Then check a 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 https://identity.apple.com/pushcert/ portal using this command
cat CustomerCompanyName.pem PlainKey.pem > PlainCert.pem
Now this PlainCert.pem file can be used on your server as an APNS / MDM certificate.
2) There are three keys in the MDM push notification
• PushMagic - a unique token sent by the MDM server with each push request
• Token - a unique token that identifies a device for APNS
• UnlockToken - escrow key used to clear the password on the device.
The MDM push notification payload also differs from the push message payload. It should look like this:
{"APS": {}, "MDM": PushMagic}
source share