Firebase messaging error - Uncaught (in promise) DOMException: Registration failed - push service error
| Promise.then (async) |
|
|
| |
refreshToken |
@ |
| |
activateMessaging |
@ |
| |
activate |
@ |
| |
_bootstrapApp |
@ |
| |
_complexObserverEffect |
@ |
| |
_effectEffects |
@ |
| |
_propertySetter |
@ |
| |
__setProperty |
@ |
| |
_applyConfig |
@ |
| |
_afterClientsReady |
@ |
| |
_ready |
@ |
| |
_readyClients |
@ |
| |
_ready |
@ |
| |
_readyClients |
@ |
| |
_ready |
@ |
| |
_tryReady |
@ |
| |
_initFeatures |
@ |
| |
__initialize |
@ |
| |
createdCallback |
@ |
The error appears on getToken() in requestPermission @ the line "app.messaging().getToken().then(function(token) {"
firebase-messaging.html
function refreshToken(app) {
var state = stateMap[app.name];
app.messaging().getToken().then(function(token) {
applyAll(app, '_setToken', token);
applyAll(app, '_setStatusKnown', true);
return token;
}, function(err) {
applyAll(app, '_setToken', null);
applyAll(app, '_setStatusKnown', true);
applyAll(app, 'fire', 'error', err);
throw err;
});
}
Source code: https://github.com/vinvantest/git_issue_firebase_login