首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将接收推送通知限制在已将其推送的设备上。

将接收推送通知限制在已将其推送的设备上。
EN

Stack Overflow用户
提问于 2015-03-31 07:10:20
回答 1查看 82关注 0票数 0

我正在我的应用程序中注册iOS推送通知。推送通知发送到所有设备。

代码语言:javascript
复制
[application registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeAlert) categories:nil]];

[application registerForRemoteNotifications];

我想限制接收推送通知从哪里发送。因为,如果我发送推送通知从我的A设备,并来到主屏幕,同样的A设备也收到该推送通知。这不是我所期望的行为。

如何将接收推送通知限制在被推送的同一设备上?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-03-31 07:23:51

代码语言:javascript
复制
 Send the APNS Device Token of Device A to the API/Webservice sending Push Notifications.
 Ask Web service developer to restrict sending Push Notification to APNS Device Token of Device A and send to rest devices.
 And you are done.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29362662

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档