开发者

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

开发者 https://www.devze.com 2023-01-31 04:17 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. 开发者_运维问答 Closed 10 years ago.

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?


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.


If I am using your application, then I will get device token when registering the device for push notification. For your application, you have to write the code to store the device token in server side. Then, after complete the task, you have to get the device token. Using the device token, you can send the push notification to particular device.

Take a look at following links;
http://blog.boxedice.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/

http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ProvisioningDevelopment/ProvisioningDevelopment.html

0

精彩评论

暂无评论...
验证码 换一张
取 消