Azure的通知枢纽 - 如何设置在同一集线器的多个应用程序 [英] Azure notification hubs - how to set multiple apps on the same hub

查看:184
本文介绍了Azure的通知枢纽 - 如何设置在同一集线器的多个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个情况我需要使用相同的通知枢纽几个iOS应用程序。对于给定的标签 - 所有的应用程序都应该接受这一推

I have a situation where I need to use the same notification hub for several iOS applications. For a given tag - all the applications should receive this push.

每个iOS应用都有不同的推送通知证书,应用程序,所以只有一个真正得到了推送通知。我不想解析到打开多个集线器 - 因为那时我需要管理哪些枢纽每个应用程序可能属于 - 这是非常尴尬的。

Each iOS app has a different push notification certificate, so only one of the apps actually got the push notification. I don't want to resolve to opening multiple hubs - because then I need to manage which hub each app could belong to - and this is very awkward.

我怎样才能做到这一点?

How can I achieve this?

推荐答案

我是pretty确定您想要做什么,原因是不可能的。推iOS版通过APNS这是一个苹果的技术处理。苹果决定了每个人的应用程序都必须有它自己的包标识符,因此它自己特定的推证。通知集线器不支持(对任何推动供应商或多个应用程序设置)多个证书,这样就没有办法为个人枢纽推到多个应用程序。你坚持有某种内置管理层哪知道谈了哪些应用程序,它枢纽。另外,你可以问问你所有的集线器发送相同的消息,并使用标签来进行实际的滤波(每个轮毂被要求发送一条消息,但与正确的标签确实注册的设备只有轮毂)。

I'm pretty certain what you want to do is impossible for several reasons. iOS push is handled via APNS which is an Apple technology. Apple dictates that every individual app has to have it's own bundle identifier and therefore it's own specific push certificate. Notification Hubs doesn't support multiple certificates (or multiple app settings for any of the push providers) so there is no way for an individual hub to push to more than one app. You're stuck having some sort of management layer built which knows which hub to talk to for which app. Alternatively, you could just ask all of your hubs to send the same message and use Tags to do the actual filtering (each hub is asked to send a message but only the hub with a device registered with the right tag does).

这篇关于Azure的通知枢纽 - 如何设置在同一集线器的多个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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