Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to send the push notification to an individual user in iPhone SDK? [closed]

I am creating an iPhone app where in I will require the push notifications.

The query I have is that the users have sent their particular tasks. When their task is over then only that user who has sent that task should get a push notification.

What should be done to send the push notification to the particular individual user?

like image 307
Parth Bhatt Avatar asked Dec 15 '10 04:12

Parth Bhatt


People also ask

Do push notifications work when app is closed iOS?

Apple does not offer a way to handle a notification that arrives when your app is closed (i.e. when the user has fully quit the application or the OS had decided to kill it while it is in the background). If this happens, the only way to handle the notification is to wait until it is opened by the user.

How do I turn on individual notifications on iPhone?

Go to Settings and tap Notifications. Select an app under Notification Style. Under Alerts, choose the alert style that you want. If you turn on Allow Notifications, choose when you want the notifications delivered—immediately or in the scheduled notification summary.

How do I send push notifications to iOS?

First, you enable push notifications in the Xcode project. Select your project in the project navigator and click on the Capabilities tab. Enable push notifications by turning the switch ON. APNs will respond with a device token identifying your app instance.


1 Answers

You need to specify the device token when sending the message to APNS

http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingWIthAPS/CommunicatingWIthAPS.html#//apple_ref/doc/uid/TP40008194-CH101-SW2

You should save the device token when registering the device for push notifications.

like image 96
vfn Avatar answered Sep 25 '22 19:09

vfn