Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

How to Regenerate the Firebase Cloud Messaging Token #255

Closed
balasasidhar opened this issue Jan 10, 2017 · 4 comments
Closed

How to Regenerate the Firebase Cloud Messaging Token #255

balasasidhar opened this issue Jan 10, 2017 · 4 comments

Comments

@balasasidhar
Copy link

How to get the Firebase Cloud Messaging token that already generated or how to generate a new one ?

Thanks in advance

@maddy2get
Copy link

I am looking to get the device_token as well for later use. Can I store it in local storage after receiving the token for the first time?

@sagesan
Copy link

sagesan commented Feb 10, 2017

You basically have to, apart from setting onPushTokenReceivedCallback callback, you can not reliably get the token already received as far as I know.

@ryanzaatari
Copy link

Same issue here, @EddyVerbruggen is there a way to get the token already generated?
Would the "instance" object received from init() promise (if called again) has a method to get the token?

@EddyVerbruggen
Copy link
Owner

EddyVerbruggen commented Jun 20, 2017

There is an API to get the current messaging token:

I'll add it to the plugin, just in time for the 4.0.0 release (today/tomorrow).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants