Skip to content

messaging.onMessage callback fires when re-opening an app on Android #842

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

Closed
dannycochran opened this issue Feb 21, 2018 · 2 comments
Closed

Comments

@dannycochran
Copy link

dannycochran commented Feb 21, 2018

Issue

The messaging.onMessage callback fires when re-opening an app on Android.

For example with this code, open an app, then background the app (don't close it):

// This gets called once on app mount.
firebaseApp.messaging().onMessage(notification => {
  // onMessage handler stuff, gets fired whenever the app is backgrounded and then re-opened.
});

Bring the app back up, and the callback for "onMessage" is fired.

Environment

Environment:
OS: macOS Sierra 10.12.6
Node: 6.10.3
Yarn: 1.3.2
npm: 3.10.10
Watchman: Not Found
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: Not Found

Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.52.2 => 0.52.2
react-native-firebase: 3.2.5 => 3.2.5

@chrisbianca
Copy link
Contributor

@dannycochran Thanks for raising - this will be addressed as part of the work on #595 which is now well underway

@chrisbianca
Copy link
Contributor

Good news, the long awaited alpha of our messaging and notifications overhaul is now available!!

Check out the release notes here: https://github.com/invertase/react-native-firebase/releases/tag/v4.0.0-alpha.1

If you have any comments and suggestions or want to report an issue, come find us on Discord

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

2 participants