title: react-native-firebase Custom sound not working on android 8, android 9
body: <p>I am working on a custom sound notification features. Custom sound is working properly on iOS and Android below version 8. Notifications also arrive in all versions of Android. But, the custom sound is not working on android 8 and 9. I have also created a channel Id. </p>
  
  <p>Below I have shared my code. can anyone please help me? Thanks in advance.</p>
  
  <pre><code>  async checkPermission() {
      const enabled = await firebase.messaging().hasPermission();
      if (enabled) {
          this.getToken();
        } else {
          this.requestPermission();
       }
      let channel = new firebase.notifications.Android.Channel(
        "channelId",
        "Channel Name",
        firebase.notifications.Android.Importance.Max
      ).setDescription("A natural description of the channel");
      firebase.notifications().android.createChannel(channel);
  
  
      firebase
        .notifications()
        .getInitialNotification()
        .then(notificationOpen =&gt; {
          if (notificationOpen) {
            const action = notificationOpen.action;
            const notification = notificationOpen.notification;
          }
        });
  
      // the listener returns a function you can use to unsubscribe
      this.unsubscribeFromNotificationListener = firebase
        .notifications()
        .onNotification(notification =&gt; {
  
          if (Platform.OS === "android") {
            const channel = new firebase.notifications.Android.Channel(
              "channelId",
              "Channel Name",
              firebase.notifications.Android.Importance.Max
            )
              .setDescription("A natural description of the channel")
              .setSound(
                notification.data.sound ? notification.data.sound : "default"
              );
  
            firebase.notifications().android.createChannel(channel);
  
            const localNotification = new firebase.notifications.Notification({
              sound: notification.data.sound
                ? notification.data.sound
                : "default",
              show_in_foreground: true
            })
              .setNotificationId(notification.notificationId)
              .setTitle(notification.title)
              .setSubtitle(notification.subtitle)
              .setBody(notification.body)
              .setData(notification.data)
              .setSound(
                notification.data.sound ? notification.data.sound : "default"
              )
              .android.setSmallIcon("notification_icon_black")
              .android.setChannelId("channelId") 
              .android.setAutoCancel(true)
              .android.setVibrate(1000)
              .android.setColor("#000000") // you can set a color here
              .android.setGroup(notification.notificationId)
              .android.setPriority(firebase.notifications.Android.Priority.High);
  
            firebase
              .notifications()
              .displayNotification(localNotification)
              .catch(err =&gt; console.error(err));
          } else if (Platform.OS === "ios") {
            const localNotification = new firebase.notifications.Notification()
              .setNotificationId(notification.notificationId)
              .setTitle(notification.title)
              .setSound(
                notification.data.sound ? notification.data.sound : "default"
              )
              .setSubtitle(notification.subtitle)
              .setBody(notification.body)
              .setData(notification.data)
              .ios.setBadge(notification.ios.badge);
  
            firebase
              .notifications()
              .displayNotification(localNotification)
              .catch(err =&gt; console.error(err));
          }
  
        });
  
      const notificationOpen = await firebase
        .notifications()
        .getInitialNotification();
      if (notificationOpen) {
        const action = notificationOpen.action;
        const notification = notificationOpen.notification;
        if (notification.data) {
          //handle data
        }
      }
  
      this.notificationOpenedListener = firebase
        .notifications()
        .onNotificationOpened(notificationOpen =&gt; {
  
          const notification = notificationOpen.notification;
          if (notification.data) {
            //handle data
          }
        });
    }
  
  
  
   async requestPermission() {
      try {
        await firebase.messaging().requestPermission();
        // User has authorised
        this.getToken();
      } catch (error) {
        // User has rejected permissions
        console.log("permission rejected");
      }
    }
  
    async getToken() {
      let fcmToken = await firebase.messaging().getToken();
      if (fcmToken) {
        console.log("fcm token===&gt;", fcmToken);
      }
    }
  </code></pre>