Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase messaging error - Uncaught (in promise) DOMException: Registration failed - push service error #352

Open
6 tasks
vinayakvanarse opened this issue Jun 7, 2018 · 0 comments

Comments

@vinayakvanarse
Copy link

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

  • [*] Chrome
  • Firefox
  • [*] Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant