如何将推送通知发送到iPhone SDK中的单个用户?

如何将推送通知发送到iPhone SDK中的单个用户?

问题描述:

我正在创建一个iPhone应用程序,其中需要推送通知。

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

这里的查询是用户已经发送了他们的特定任务。

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

请帮助和建议。

感谢

在向APNS发送邮件时需要指定设备令牌

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.