Skip to content

Flutter FCM - Custom Notification Sound #5268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
karthikeyanp307 opened this issue Mar 8, 2021 · 1 comment
Closed

Flutter FCM - Custom Notification Sound #5268

karthikeyanp307 opened this issue Mar 8, 2021 · 1 comment
Labels
Needs Attention This issue needs maintainer attention. type: bug Something isn't working

Comments

@karthikeyanp307
Copy link

Hi Team,

I need to set a custom notification sound while receiving the firebase notification in my Flutter application. I tried adding the custom sound to the android project inside res/raw folder and to the iOS directly to the Runner project. While sending the notification, I have included the sound: "custom_sound" in the payload as below.

"notification" : {
"body" : "body",
"title" : "title",
"sound" : "custom_sound"
}

"android":{
"notification":{
"sound":"custom_sound"
}
}

"apns" : {
"aps": {
"sound": "custom_sound"
}
}

After several attempts, only the default notificaiton sound is getting played. Let me know if we need to do anything to make this work.

Thanks.

@karthikeyanp307 karthikeyanp307 added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Mar 8, 2021
@markusaksli-nc
Copy link
Contributor

Hi @karthikeyanp307
I see there's an open issue addressing the case you described #4521.
Please follow up on that issue, I'm closing the current one as a duplicate.
If you disagree, please write in the comments and I will reopen it.
Thank you

@firebase firebase locked and limited conversation to collaborators Apr 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs Attention This issue needs maintainer attention. type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants