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.