react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

push notification not working in some devices having android v8+

Open Nits7029 opened this issue 7 years ago • 12 comments

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_HERE e.g. iOS 10 or Android API 28
  • Operating System:
    • [x] MacOS, version: N/A
    • [ ] Windows, version: N/A
    • [ ] Other, please specify: N/A
  • Build Tools:
    • ADD_SOMETHING_HERE e.g. Xcode 10, Android Studio 3.2
  • React Native version:
    • ADD_SOMETHING_HERE
  • React Native Firebase library version:
    • ADD_SOMETHING_HERE
  • Firebase module(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:

Nits7029 avatar Dec 18 '18 13:12 Nits7029

Please take a look at the issue #1757 I created and let me know if it is something similar that you are facing.

chaitanyadeorukhkar avatar Dec 19 '18 04:12 chaitanyadeorukhkar

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.

Nits7029 avatar Dec 19 '18 06:12 Nits7029

any updates here?

Nits7029 avatar Dec 20 '18 13:12 Nits7029

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

screen shot 2018-12-21 at 6 09 57 pm

Nits7029 avatar Dec 21 '18 13:12 Nits7029

@Nits7029 I am also getting the same problem mainly in oneplus and oppo devices. Did you got any fixes?

sangupandi avatar Dec 28 '18 06:12 sangupandi

not yet, hopefully i moved to OneSingal

Nits7029 avatar Jan 03 '19 09:01 Nits7029

any updates here?

sangupandi avatar Jan 16 '19 05:01 sangupandi

any progress?

abdullahbayram avatar Feb 11 '19 13:02 abdullahbayram

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.

stale[bot] avatar Mar 11 '19 13:03 stale[bot]

I am getting same issue, Can you please provide solution?

arvindebiztrait avatar Apr 02 '19 08:04 arvindebiztrait

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.

stale[bot] avatar Apr 30 '19 09:04 stale[bot]

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.

stale[bot] avatar May 15 '19 10:05 stale[bot]