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

Am new to using Apple Push Notification in iPhone apps. I have gathered enough information from Apple Document RemoteNotificationsPG. But, i have a doubt on APN Server. I cleared to create .pnp that is we are renaming the SSL certificate created by us. Am i right?. I have found a sample .php APN Server from this link (Thanks to raywenderlich.com) http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12. From this server they mentioned

// Put your device token here (without spaces):
$deviceToken = '0f744707bebcf74f9b7c25d48e3358945f6aa01da5ddb387462c7eaf61bbad78';

If we put the user's deviceToken the message will be sent to the corresponding app user i am clear on this concept. But, i am doubt on below question,

1.How we can store device tokens in the server that is APN service accepted by the user from our app?
2.  If we want to send all APN registered user how we can send the push notification from the server?
3. If all the users registered the APN (App. 100 users) from our app where we have to save the DeviceToken? How we to save all deviceTokens in our server?
4. If we want to send a special message to a specific user how we retrieve the specific user's device Token from server and push message to him/her?

I hope can anyone will help me on my doubts. Please help me to get clear on these doubts. Thanks in advance.

share|improve this question
Sorry, but this question belongs on StackOverflow. Please read our FAQ: apple.stackexchange.com/faq – Andrew Larsson Apr 25 '12 at 19:56

closed as off topic by gentmatt, Daniel Lawson Apr 25 '12 at 20:18

Questions on Ask Different are expected to relate to Apple hardware or software within the scope defined in the FAQ. 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 closed questions here.

Browse other questions tagged or ask your own question.