或许有iOS的应用程序支持多种推送通知注册? [英] Could one iOS application support multiple push notification registration?

查看:118
本文介绍了或许有iOS的应用程序支持多种推送通知注册?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

结果
这是我第一次接近推送通知服务,我有点困惑。我倒是想拥有只是一些概念上的帮助,而不是code。结果
我需要建立一个应该接受并注册了不同类型的通知应用程序。比如在我的应用我想用户可以为促销通知类别和新闻通知登记类,我想他们可以选择他们想要得到通知哪一个。结果
阅读苹果文档,这不是那么清楚,我,似乎一旦应用设备注册我收到一张令牌,似乎是不可能收到不同类型的登记(新闻和促销的实例)更多令牌,因为令牌是关系到应用程序和设备。这是否正确?结果
事实并非如此清楚,我的另一件事是,如果设备注册了一个特定的通知可以通知只发送给一组O设备?_爱
如果没有什么是由苹果推送服务提供你认为有可能这样来管理一切:
如果(PROMO ||新闻)选择-I登记通知的应用设备
-I获得令牌
-I令牌发送到我的服务器也提供有关其用户订阅该服务的其他信息
-The服务器(供应商)注册令牌和实物认购(PROMO ||新闻)
-Later当我有一个通知,以推动我要求所有的服务器为特定类别注册的令牌,然后我通知只发送给那些该类别注册的设备。

结果
帮了我的感谢,我真的很困惑。


解决方案

  

阅读苹果文档,这不是那么清楚,我,似乎一旦应用设备注册我收到一张令牌,似乎是不可能收到不同类型的登记(新闻和促销的实例)更多的标记由于令牌是关系到应用程序和设备。是这样吗?



  

这不是那么清楚,我的另一件事是,如果设备注册了一个特定的通知可以通知只发送给一组O设备?


是的,你需要一个数据库,你连接一个推令牌与相关服务(促销|新闻)。如果你有一个新的促销推送消息发送邮件给所有相关的令牌。在App网站,每次用户改变categorie(促销/新闻),你应该prpvide这些相关信息与推令牌服务。


This is the first time that I approach the push notification service and I'm little bit confused. I 'd like to have just some conceptual help, not code.
I need to build an app that should receive and register for different kind of notifications. For instance in my app I'd like that users could register for PROMO notifications category and NEWS notifications category, I'd like that they could choose which one they want to be notified.
Reading the Apple doc, that was not so clear to me, it seems that once the app device is registered I receive just one token and seems impossible to receive more tokens for different kind of registration(NEWS and PROMO for instance), because the token is related to the app and the device. Is that correct?
The other thing that is not so clear to me is, if a device is registered for a specific notification is it possible to send the notification only to a set o devices?

If nothing of that is offered by Apple Push services do you think that is possible to manage everything like that: -I register the app device for notification if (PROMO || NEWS) are selected -I get the token -I send the token to my server giving also as additional info about the service which the user wants to subscribe -The server (provider) register the token and the kind of subscription (PROMO || NEWS) -Later when I have a notification to push I ask the server all the tokens registered for that specific category and then I send the notification only to those devices registered for that category.


Thanks for helping me out I'm really confused.

解决方案

"Reading the Apple doc, that was not so clear to me, it seems that once the app device is registered I receive just one token and seems impossible to receive more tokens for different kind of registration(NEWS and PROMO for instance), because the token is related to the app and the device. Is that correct?"

YES

The other thing that is not so clear to me is, if a device is registered for a specific notification is it possible to send the notification only to a set o devices?

YES, you need a DB where you connect a Push Token with the related Services (promo | news). If you have a new Promo Push Message you send the message to all related token. on the app site, everytime the user change the categorie (promo / news) you should prpvide these infos to your service with the push token.

这篇关于或许有iOS的应用程序支持多种推送通知注册?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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