Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apple Push Notifications to specific Users

as far as I understand APN's I can only send them to the app not a specific user that uses my app.

Is there a way of sending APN's only to specific users that use my app? I can't think of a way of doing this...

Greetz

like image 256
spankmaster79 Avatar asked Oct 13 '11 09:10

spankmaster79


1 Answers

Apple's Push Notifications are always sent to specific 'users' (a specific device being an iphone, ipad)

What you do when you want to use APN is register the application for push notifications. Then you get a token that links the user's device to the notification service. You then use this token to 'push notifications' to APN which will in turn send a notification to that device. Notifications are pushed by 'Providers'.

Here's apple's documentation on the matter: Apple Push Notifications

Look up 'Registering for Remote Notifications' to register the device and 'Handling Local and Remote Notifications' to handle the incoming notifications.

Read up on how to send notifications here: Providers

like image 112
Jovan Avatar answered Sep 23 '22 19:09

Jovan