Azure browser push notification for chrome, firefox ,and safari browser

泄露秘密 提交于 2019-12-11 19:51:08

问题


How can i implement browser push notification using azure notification hub that can send push notification to chrome,Firefox and safari browsers.I need to implement this for a very high scale users.


回答1:


Basically without Azure Notification Hub, you can try to send push notification to different browsers using Web Push API which works on the lastest Chrome & Firefox I tried, please see the Mozilla document for Push API to know it. And there is a cookbook site for Web Push to show some examples to help getting started. Then, you can host your web push server on Azure.

Note: Due to the API of Web Push which be experimental, I don't know whether it works on Safari because of no Mac I have.

Meanwhile, considering for serving a very high scale users, to integrate Google Cloud Message with Azure Notification Hub, you can try to refer to an old Google blog Push Notifications on the Open Web and the Azure tutorial of Google/Firebase Cloud Message for Android to create an instance of notification hub and configure it with GCM/FCM to send push message via Web Push to browsers.

Hope it helps.



来源:https://stackoverflow.com/questions/53523187/azure-browser-push-notification-for-chrome-firefox-and-safari-browser

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