react-native-push-notification: failed to post notification on channel null

Hi, when my app (android) is on background I cannot see the notification on the notification bar, but I can see the notification on the console and on my simulator I have screenshot_1531755457 I’m using react-native: 0.55.4 minSdkVersion 16 targetSdkVersion 26 and com.google.gms:google-services:4.0.1.

I don’t want to downgrade to targetSdkVersion 25 since, as Google says from August 2018 for new apps and November for app updates, you will be required to target Android O (API level 26)

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (3 by maintainers)

Most upvoted comments

It’s working. I tried again by importing the library writing on my package.json "react-native-push-notification": "https://github.com/Dhanraj-bidchat/react-native-push-notification.git" (before I was just cloning the last repository on my node_modules… I thought it was the same… ) and by adding on my build.gradle

ext {
    googlePlayServicesVersion = "4.0.1" // default: "+"
    firebaseVersion = "+" // default: "+"


    // Other settings
    compileSdkVersion = 27 // default: 23
    buildToolsVersion = "23.0.1"
    targetSdkVersion = 26 // default: 23
    supportLibVersion = "26.1.0" // default: 23.1.1

Now It is all working fine. I tested it on Android 8 and Android 7. Thanks @Gp2mv3 !