push notification not working in some devices having android v8+
Issue
I have implemented push notification service and it works fine in most of android devices, but having issues in some device eg. realme android v8.1.
Issue is when app closed, not able to receive notifications and not able to handle notification data.
Let me know if any configuration files needed for review.
so anyone know, where i need to take a look? Thanks
Project Files
iOS
ios/Podfile:
- [ ] I'm not using Pods
- [x] I'm using Pods and my Podfile looks like:
# N/A
AppDelegate.m:
// N/A
Android
android/build.gradle:
// N/A
android/app/build.gradle:
// N/A
android/settings.gradle:
// N/A
MainApplication.java:
// N/A
AndroidManifest.xml:
<!-- N/A -->
Environment
- Platform that you're experiencing the issue on:
- [ ] iOS
- [x] Android
- [ ] iOS but have not tested behavior on Android
- [ ] Android but have not tested behavior on iOS
- [ ] Both
- If known, the version of the platform are you experiencing the issue on:
ADD_SOMETHING_HEREe.g. iOS 10 or Android API 28
- Operating System:
- [x] MacOS, version:
N/A - [ ] Windows, version:
N/A - [ ] Other, please specify:
N/A
- [x] MacOS, version:
- Build Tools:
ADD_SOMETHING_HEREe.g. Xcode 10, Android Studio 3.2
React Nativeversion:ADD_SOMETHING_HERE
React Native Firebaselibrary version:ADD_SOMETHING_HERE
Firebasemodule(s) you're using that has the issue:- [x] N/A
- [ ] Authentication
- [ ] Analytics
- [ ] Cloud Firestore
- [ ] Cloud Messaging (FCM)
- [ ] Crashlytics
- [ ] Dynamic Links
- [ ] Functions Callable
- [ ] Invites
- [ ] Instance ID
- [x] Notifications
- [ ] Performance Monitoring
- [ ] Realtime Database
- [ ] Remote Config
- [ ] Storage
- Are you using
TypeScript?- [x] No
- [ ] Yes, version:
N/A
- Are you using Expo, e.g.
ExpoKit?- [x] No
- [ ] Yes, I've not ejected
- [ ] Yes, but I have ejected to
ExpoKit - [ ] Yes, but I have ejected to vanilla React Native
- Expo version:
N/A
Think react-native-firebase is great? Please consider supporting the project with any of the below:
- 👉 Donate via Open Collective
- 👉 Follow
React Native FirebaseandInvertaseon Twitter - 👉 Star this repo on GitHub ⭐️
- 👉 Contribute; see our contributing guide
Please take a look at the issue #1757 I created and let me know if it is something similar that you are facing.
no its not some time, for me it never works when app closed.
and and not able to handle notification data, when the app in background or in the foreground. I mean onNotificationOpened method not calling on tap of notification.
any updates here?
following up, i have debugged with Android studio. and i found that when app killed and on notification send i am getting log as attached screenshot

@Nits7029 I am also getting the same problem mainly in oneplus and oppo devices. Did you got any fixes?
not yet, hopefully i moved to OneSingal
any updates here?
any progress?
Hello 👋, this issue has been automatically marked as stale because it has not had activity for quite some time. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.
I am getting same issue, Can you please provide solution?
Hello 👋, this issue has been automatically marked as stale because it has not had activity for quite some time. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.