Open vinayakvanarse opened 6 years ago
Firebase messaging error - Uncaught (in promise) DOMException: Registration failed - push service error
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
Firebase messaging error - Uncaught (in promise) DOMException: Registration failed - push service error
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];
}
Source code: https://github.com/vinvantest/git_issue_firebase_login