evollu / evollu/react-native-fcm

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

Open
#1,121 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.7k
Forks
661
PR merge metrics
No merged PRs in 30d

Description

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+
`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.