Search code examples
iphonemdm

iPhone doesn't receive MDM Push notification sent by mdm server


Followed the steps mentioned here and Softhinker. Created the certificates and configuration profiles as mentioned. When the configuration profile is installed in the device, sends the Authenticate, Push Magic, and Token update to the mdm server. Till that point it is fine. But when the server tries to send a mdm push notification to the device with the mdm key and pushmagic, it is not received by the iPhone. At the server end, the push is sent successfully based on the console logs there. There is nothing to see in the console of iPhone. It doesn't show anything.

Some inputs regarding this would be helpful.


Solution

  • I followed the same steps as in Softhinker using openssl commands to generate the appropriate certificates. Used them on both the server (mdm server) and the client (iPhone). When the mobile config profile is installed, the server gets the details. And when the server sends the mdm push with the mdm environment to ask the device to poll for commands, that particular mdm push notification did not reach the device, how ever it shows as sent at server. Checked the mobileConfig profile created and the settings of it. Previously the mdm payload settings are as development environment. Changed it to production and tried again. Now all of it works. You might check with the production environment once, if that helps.