Skip to content

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

Open
@vinayakvanarse

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions