适用于Chrome,Firefox和Safari浏览器的Azure浏览器推送通知 [英] Azure browser push notification for chrome, firefox ,and safari browser

查看:125
本文介绍了适用于Chrome,Firefox和Safari浏览器的Azure浏览器推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用能够将推送通知发送到chrome,Firefox和safari浏览器的azure通知中心实现浏览器推送通知.我需要为非常大规模的用户实现.

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.

推荐答案

基本上没有Azure Notification Hub,您可以尝试使用可在最新的Chrome& amp;我尝试使用Firefox,请参阅Mozilla文档,以获取 Push API 知道这一点.还有 Web Push的烹饪书站点,其中显示了一些示例来帮助入门.然后,您可以将Web推送服务器托管在Azure上.

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.

注意:由于Web Push的API是实验性的,由于我没有Mac,我不知道它是否可以在Safari上运行.

同时,考虑到要为大量用户提供服务,以将Google Cloud Message与Azure Notification Hub集成,您可以尝试引用旧的Google博客 Firebase 用于Android的Cloud Message创建一个通知中心实例,并使用GCM/FCM对其进行配置,以通过Web Push将推送消息发送到浏览器.

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.

希望有帮助.

这篇关于适用于Chrome,Firefox和Safari浏览器的Azure浏览器推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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