spankmaster79
spankmaster79

Reputation: 22193

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

Upvotes: 9

Views: 12194

Answers (3)

Jovan
Jovan

Reputation: 2670

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

Upvotes: 9

Stephen Darlington
Stephen Darlington

Reputation: 52565

APNS is not a broadcast medium. As it says in the documentation:

Apple Push Notification service transports and routes a notification from a given provider to a given device.

When you send a notification from the server, one of the paramters is the device ID.

Upvotes: 11

simonbs
simonbs

Reputation: 8042

It is possible. I use Easy APNS and in newMessage() you can specify the PID (saved in a MySQL database) of the user.

Have a look at http://www.easyapns.com/

Upvotes: 3

Related Questions