如何将推送通知发送到iPhone SDK中的单个用户? [英] How to send the push notification to an individual user in iPhone SDK?

查看:168
本文介绍了如何将推送通知发送到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.

这篇关于如何将推送通知发送到iPhone SDK中的单个用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆