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

There is no sound when notification is received. Android 8.

Open pedrogarciyalopez opened this issue 7 years ago • 2 comments

Hi, I'm trying to use sdk-26 branch. I test it on a devices and emulator. Everything is fine on android from 4.2 to 7. But on android 8 notifications appears on the screen but there is no sound.

I'm trying to send custom notification.

{
  token: deviceToken,
  data: {
    custom_notification: JSON.stringify({ 
       title: "Title", 
       body: "Body",
       sound: "default",
       priority: "high", 
       ticker: "Ticker", 
       channel: "default"
    })
  }
}

"react": "16.0.0-alpha.12", "react-native": "0.47.1", "react-native-fcm": "github:evollu/react-native-fcm#sdk-26"

pedrogarciyalopez avatar Feb 03 '18 16:02 pedrogarciyalopez

seems sound and vibration are controlled by notification channel now. If you want to you can fix yourself and create a PR. or I will fix it later

https://github.com/evollu/react-native-fcm/blob/sdk-26/android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java#L86

https://developer.android.com/reference/android/app/NotificationChannel.html

evollu avatar Feb 05 '18 15:02 evollu

any update?

haripermadi avatar May 29 '19 08:05 haripermadi