Не удается верно настроить авторизацию по push
https://firebase.google.com/docs/cloud-messaging/migrate-v1
Необходимо обращаться к url
https://fcm.googleapis.com/v1/projects/myproject-b5ae1/messages:send
Сразу возникает вопрос, в строке "myproject-b5ae1" необходимо менять на
Или все остается как есть?
Затем
Authorization: Bearer ya29.ElqKBGN2Ri_Uz...HnS_uNreA
Что из них указывать, столько вариантов перебрал. Не знаю что делать...
HTTP/1.1 401 Unauthorized
Vary: X-Origin
Vary: Referer
Content-Type: application/json; charset=UTF-8
Date: Sun, 07 Mar 2021 04:07:10 GMT
Server: ESF
Cache-Control: private
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
Alt-Svc: h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Accept-Ranges: none
Vary: Origin,Accept-Encoding
Transfer-Encoding: chunked
{
"error": {
"code": 401,
"message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"status": "UNAUTHENTICATED"
}
}
Постоянно данное особщение

