有人可以提供有关如何为Chrome网络应用程序设置推送通知的信息吗?
如何设置主题,创建新主题,删除主题以及语法是什么。
我使用我们拥有的工具搜索互联网,并且没有任何工具。
谢谢。
答案 0 :(得分:0)
There is no client-side API for web applications to subscribe to topics. You can use the REST API, but that requires running a trusted process (i.e. on a server). See my answer here for details: How to subscribe to topics with web browser using Firebase Cloud Messaging
Note that in general there is no API to create/delete topics. Topics are automatically created when you subscribe to them or send a message to them.