I know that in order to receive a push notification, an iOS app must register with the APN service, where it will receive this token, which it will then forward to the server that needs to send push notifications to the app.
But, when it comes to MDM push notifications, we don't have an app running on the device. Therefore, when the device is about to enroll with the MDM server, it send the server its token. My question is, where / how or at which point does it receive this token ?
I am trying to send an MDM push notification, but I keep receiving an error from the APN service about the token being invalid.
Please let me know your thoughts on this.