Hi,
I am getting token ID successfully:
chrome.instanceID.getToken({
authorizedEntity: "11111111",
scope: "GCM"
}, function (registrationId) {
});
And this works fine.
But after some time when I send message I am getting:
{
"error": {
"code": 404,
"message": "Requested entity was not found.",
"status": "NOT_FOUND",
"details": [
{
"@type": "
type.googleapis.com/google.firebase.fcm.v1.FcmError",
"errorCode": "UNREGISTERED"
}
]
}
}
Chrome is opened and not closed.
When I delete extension and register again I am getting new token.
It works same, after some time start to get this error.
In current extension, when sending does not work, and when try to register again I see the same token and obviously it does not work as getting 404 error.
Can someone explain why is like this?
What I am doing wrong?