Skip to content
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

Issue with React Native Firebase. #24

Closed
rkaartikeyan opened this issue Sep 15, 2019 · 3 comments
Closed

Issue with React Native Firebase. #24

rkaartikeyan opened this issue Sep 15, 2019 · 3 comments

Comments

@rkaartikeyan
Copy link

💻 My environment

"dependencies": {
    "react": "16.8.6",
    "react-native": "0.60.5",
    "react-native-bootsplash": "^1.0.0",
    "react-native-firebase": "^5.5.6",
    "react-native-gesture-handler": "^1.4.1",
    "react-native-reanimated": "^1.2.0",
    "react-navigation": "^3.12.0"
  },
  • Platform: android
  • OS version: 8.1
  • Device: All
  • Simulator: no
  • Android buildToolsVersion: 3.4.1

🕵️‍♂️ Reproducing the issue

I have used React native firebase for push notifications. When I have opened the app and if I am getting a push notification, I can get the _body & title details in the .onNotification() callback of firebase.

But, in this callback function .onNotificationOpened(), _body & title are null, please check below screenshot.

image

🤞Solution

I think its because of the bootsplash, I am getting that error. So please give me a solution.

@MoOx
Copy link
Contributor

MoOx commented Sep 16, 2019

I guess if you remove totally react-native-bootsplash you don't have this issue anymore?

@zoontek
Copy link
Owner

zoontek commented Sep 18, 2019

@rkaartikeyan This looks similar to the issue treated by this PR #11. It pass the intent extras to the MainActivity(needed for the getInitialNotification method). Maybe it isn't enough.

Could you provides your AndroidManifest.xml and the JS code requesting the notification?

@zoontek zoontek added the bug Something isn't working label Sep 19, 2019
@rkaartikeyan
Copy link
Author

Dear Friends,

as mentioned in the document, we have to pass the notification message in data attribute, and its resolved.

@zoontek zoontek removed the bug Something isn't working label Sep 25, 2019
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

3 participants