android– 订阅FCM for Chrome的主题

android– 订阅FCM for Chrome的主题,第1张

概述我正在使用FCM发送推送通知.当我知道他们的ID时,我能够成功地将通知发送到一组设备.但现在,我想向这里提到的主题发送通知:https://firebase.google.com/docs/cloud-messagingopic-messaging他们很好地记录了服务器端.但我不确定如何在客户端订阅主题(我的客户端包括Chrome打包

我正在使用FCM发送推送通知.

当我知道他们的ID时,我能够成功地将通知发送到一组设备.

但现在,我想向这里提到的主题发送通知:https://firebase.google.com/docs/cloud-messaging/topic-messaging

他们很好地记录了服务器端.但我不确定如何在客户端订阅主题(我的客户端包括Chrome打包应用程序,Web浏览器,基于离子的移动应用程序用于不同平台.)

那么,总结如何让用户订阅主题?

请帮帮我.提前致谢.

PS:我确实经历了How to get registered into GCM topics from javascript (for Chrome)和How to implement Google Cloud Messaging – Topic Messaging in Chrome?,但没有多大帮助.

解决方法:

更新:最近宣布(2016年10月17日),Firebase JavaScript library:

Today we’re announcing web support for Firebase Cloud Messaging (FCM) with the release of a JavaScript library. This extends our current browser support, enables a dramatically simpler implementation process, and brings powerful features such as topics and Device Group Messaging to the web@H_404_23@.

With the FCM JavaScript library, you can send web push notifications to single devices, topics or groups of devices. With the addition of topic support on the Web, we are making it possible for developers to send a message to their AndroID, iOS and Web users who have opted in to a particular topic. To take advantage of topics and device groups, you can use the server-sIDe APIs to 07001 and 07002.

链接到Setting Up the JavaScript Client App的Firebase文档.

我环顾了一下这些文档.似乎Chrome的topic Messaging仍然无法用于GCM和FCM.

总结

以上是内存溢出为你收集整理的android – 订阅FCM for Chrome的主题全部内容,希望文章能够帮你解决android – 订阅FCM for Chrome的主题所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1101678.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-28
下一篇2022-05-28

发表评论

登录后才能评论

评论列表(0条)

    保存