GoogleChromeLabs / web-push-codelab

Other
557 stars 293 forks source link

Working with firefox but not with chrome "InvalidRegistration" #82

Closed bluexpres closed 5 years ago

bluexpres commented 5 years ago

Hello, I am fetching token in my test webpage both firefox and chrome. When i send data to token generated by firefox is delivering but when i try to send to token generated by chrome result is invalid registration. Token is generating but not reachable when generated from chrome.

Do you have any suggestion about this?

-- Edit I also checked 2 iid generated by firefox and chrome;

curl -H "Authorization: key=***" "https://iid.googleapis.com/iid/info/FIREFOX_TOKEN" result : {"application":"webpush","scope":"","authorizedEntity":"440204839256","platform":"BROWSER"}

curl -H "Authorization: key=***" "https://iid.googleapis.com/iid/info/CHROME_TOKEN" {"error":"InvalidToken"}

Regards.