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.