evollu / react-native-fcm

react native module for firebase cloud messaging and local notification
MIT License
1.73k stars 679 forks source link

Notification default sound is not coming when Android app is in foreground/background #1121

Open vinay340 opened 5 years ago

vinay340 commented 5 years ago

When an app receives a push in foreground/Background default notification sound is missing.

I have tried adding sound : 'default in custom-notification ,still issue exists.

How can I achieve this?

Here is notification payload

{ "to": "token", "content_available": true, "data": { "custom_notification": { "data": "some push recieved", "badge": 10, "color": "blue", "show_in_foreground": true, "sound": "default", "icon": "ic_notif", "channel": "car_status", "title": "title", "body": "You have a message from car1.", "priority": "high", "group": "GROUP" } } }

My projects runs in
react-native-cli: 2.0.1, react-native: 0.59.10, Android Device : Honor, Version : 8+