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

前端 未结 1 601
没有蜡笔的小新
没有蜡笔的小新 2021-01-03 02:07

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.

Each

相关标签:
1条回答
  • 2021-01-03 02:32

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

    0 讨论(0)
提交回复
热议问题