Closed s2yed closed 2 years ago
You can send it from backend follow this docs https://firebase.google.com/docs/cloud-messaging/http-server-ref
{
"notification":{
"title":"test",
"body": "Message",
"sound":"mysound.wav"
},
"data":{
}
}
POST https://fcm.googleapis.com/v1/projects/myproject-b5ae1/messages:send
{
"notification": {
"title": "Breaking News",
"body": "New news story available."
},
"android": {
"notification": {
"sound": "mysound.wav"
}
},
"apns": {
"payload": {
"aps": {
"sound" : "mysound.wav"
}
}
},
"data":{
}
}
for android you can pass it in AndroidNotificationChannel
while init
how to change sound Notification