小编Kau*_*hal的帖子

Google 推送通知 - DOMException:注册失败 - 推送服务错误

我正在尝试使用 VAPID 密钥在我的网站上启用推送通知。当我包含gcm_sender_id并从PushManager.subscribe方法中删除applicationServerKey时,它运行良好。

仅当我启用 VAPID 密钥并从 manifest.json 文件中删除 gcm_sender_id 时。我收到以下错误。

DOMException: Registration failed - push service error
Run Code Online (Sandbox Code Playgroud)

我正在使用 Chrome 浏览器。

google-chrome push-notification firebase-cloud-messaging

14
推荐指数
1
解决办法
1万
查看次数