Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.


The plugin works great for the case when the app is used only by one user per device since the onRegister() function is only called once.

In my app, I can logout and login with another account, but the onRegister function is not called anymore (since the device is already registered).

Is there a way to get the deviceToken from the PushNotification object? If not, I certainly can store the device Token in AsyncStorage, but if the token changes from APN, does it call onRegister() function ?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

bracocommented, Jan 31, 2017

@Crash-- looks like you don’t get a token in the simulator, so onRegister never fires. Needs to run on a real physical device. README should probably be updated.

github-actions[bot]commented, May 30, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What method should I use now since FirebaseInstanceId ...
I would like to know what would be the correct way to get Firebase token for sending push notification now that getToken() is...
Read more >
GetToken() - Lucee Documentation
Determines whether a token of the list in the delimiters parameter is present in a string. Returns the token found at position index...
Read more >
FirebaseInstanceId - Google
Firebase Instance ID has been replaced with FirebaseInstallations for app instance identifiers and FirebaseMessaging.getToken() for FCM registration tokens.
Read more >
GetToken Method - IBM
Returns the SecurityToken object that is currently in effect. If there is a Token associated with the current thread then this method will...
Read more >
GetToken - Adobe Support
The GetToken function recognizes explicit spaces, tabs, or newline characters as the parameter delimiters. (To specify a space character, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found