Search code examples
iphoneobjective-ccocoa-touchios4push-notification

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


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?


Solution

  • 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.