【问题标题】:Electron+React Push Notification With Web-Push使用 Web-Push 的 Electron+React 推送通知
【发布时间】:2021-12-01 15:45:44
【问题描述】:

我尝试将 web-push 与 Electron + React 一起使用,得到了这个错误

 DOMException: Registration failed - push service not available

我都是按照这个article做的

有人有什么想法吗?

【问题讨论】:

    标签: notifications electron web-push


    【解决方案1】:

    Electron 不支持开箱即用的 WebPush 通知,因为这不是 Chromium 本身的一部分。更多详情here.

    作为替代解决方案,您可以使用 Pushy(付费)或这个漂亮的库 — electron-push-receiver。我自己正在使用电子推送接收器,它与 Firebase Cloud Messaging 的作用就像一个魅力。

    【讨论】:

      猜你喜欢
      • 2017-06-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-19
      • 2021-06-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多