Azure notification hubs - how to set multiple apps on the same hub

亡梦爱人 提交于 2019-11-30 15:37:40

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!