5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Firebase Cloud Messaging(FCM)でブラウザにWebPush通知

Posted at

はじめに

https://firebase.google.com/docs/cloud-messaging/js/client?hl=ja
まず全部見て、同じ様にやってみよう。

できない

メッセージが届かない。

Unauthorized

Error 401

Invalid (legacy) Server-key delivered or Sender is not authorized to perform request.

これじゃない

原因はこれ。
222.png

動画だとapikeyってこれだと思うじゃないですか。

本当は・・・
111.png

プロジェクトの設定>クラウドメッセージング>

333.png

もうちょっと親切に教えてください。

↓ここ参考
https://stackoverflow.com/questions/37633188/firebase-401-unauthorized-error-fcm

5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?