Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

closed as off topic by CajunLuke, daviesgeek, Gerry, Mark, Stu Wilson Oct 24 '12 at 20:37

Questions on Ask Different are expected to relate to Apple hardware or software within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

This question seems like a better fit for Stack Overflow, as it covers topics related to writing an iOS app. – CajunLuke Oct 24 '12 at 18:48
@CajunLuke no this is not about writing code. It is rather about understanding where an iOS device receives its device token. – Heshan Perera Oct 25 '12 at 3:56
No, it's not about writing code per se, but it is about writing an app; specifically, it's about the ancillary stuff (in this case, push notifications). This belongs on Stack Overflow because they're all about programming. Programming is not just code; it's all that ancillary stuff that makes your code work properly, too. – CajunLuke Oct 25 '12 at 13:58
At any rate, now that the question's been closed, you're not going to get any answers here (not that you were all that likely to before), so I recommend visiting Stack Overflow and asking again there. – CajunLuke Oct 25 '12 at 13:59

Browse other questions tagged or ask your own question.