Firebase-js-sdk: [Messaging] onTokenRefresh never triggers

Created on 16 Jun 2017  路  2Comments  路  Source: firebase/firebase-js-sdk

[REQUIRED] Describe your environment

  • Operating System version: Linux
  • Firebase SDK version: 4.1.2
  • Firebase Product: messaging

[REQUIRED] Describe the problem

I've noticed that nothing ever gets _next_'ed into tokenRefreshObserver_, meaning that the function or observer passed to firebase.messaging.Messaging#onTokenRefresh() never gets triggered.

See: src/messaging/controllers/window-controller.ts#L72-L75

Is there some process missing that would receive token updates and trigger onTokenRefresh()?

Steps to reproduce:

n/a

Relevant Code:

See linked file.

messaging

Most helpful comment

I just found this Stackoverflow answer by @gauntface from a few months ago addressing this. In short, for anyone else stumbling upon this in the future: onTokenRefresh() is currently not used.

Closing this issue, sorry for the noise!

All 2 comments

Hey there! I couldn't figure out what this issue is about, so I've labeled it for a human to triage. Hang tight.

I just found this Stackoverflow answer by @gauntface from a few months ago addressing this. In short, for anyone else stumbling upon this in the future: onTokenRefresh() is currently not used.

Closing this issue, sorry for the noise!

Was this page helpful?
0 / 5 - 0 ratings