I'm following this guide to learn about web push implementation. I've followed the guide until I encountered a problem when using curl to send a notification:
curl --header "Authorization: key=<PUBLIC_API_KEY>" --header "Content-Type: application/json" https://android.googleapis.com/gcm/send -d "{\"registration_ids\":[\"<SUBSCRIPTION_ID>\"]}"
I changed the API Key and Subscription Id with my Firebase Cloud Messaging key and the Subscription ID generated when the notifications are accepted on the browser.
Still I get this error when executing curl:
{"multicast_id":8346257587601342490,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"MismatchSenderId"}]}
I found this error related to android push notifications but not about web push so the other answers were not useful with my issue.
Has anyone experienced this issue? What am I missing?