Web Push API Chrome, returning “Unauthorized Registration”

前端 未结 3 1748
小鲜肉
小鲜肉 2021-01-11 12:54

I\'ve been doing a google tutorial on how to send web push notifications on Chrome using web-push node module.

The thing is, the tutorial also provides a companion s

相关标签:
3条回答
  • 2021-01-11 13:32

    Check the field gcm_sender_id in your manifest.json file if it matches exactly with the gcm_sender_id in your google account. I faced a similar problem before and this was the solution to my problem.

    0 讨论(0)
  • 2021-01-11 13:34

    Have you used any HTTP server to test the code in that tutorial? Further, DNS should be localhost or https:// site. If you are running the HTTP server under some port, better to have 5 digit client side port. Here is linked my project browser push

    0 讨论(0)
  • 2021-01-11 13:42

    There's a report of this in the web-push library issue tracker: https://github.com/web-push-libs/web-push/issues/254.

    Can you try resetting your clock, like the reporters in that issue did?

    0 讨论(0)
提交回复
热议问题