I have an Ionic 5 application which handles perfectly push notification on platform Android.
But when I would like to set custom sound like customring.wav, it doesn't work..
I have already copied the mentioned file into res/raw folder however it doesn't work as I expected.
When the device receives a notification the device's default notification sound plays every time...
For fcm we use this one:
https://ionicframework.com/docs/native/fcm
Our server sends the following json:
{
"message": {
"name": null,
"data": null,
"notification": {
"title": "auction",
"body": "lorem ipsum etc..",
"image": null
},
"android": {
"collapse_key": null,
"priority": null,
"ttl": null,
"restricted_package_name": null,
"data": null,
"notification": {
"title": null,
"body": null,
"icon": null,
"color": null,
"sound": "customring",
"tag": null,
"click_action": null,
"body_loc_key": null,
"body_loc_args": null,
"title_loc_key": null,
"title_loc_args": null,
"channel_id": null,
"ticker": null,
"sticky": null,
"event_time": null,
"local_only": null,
"notification_priority": null,
"default_sound": null,
"default_vibrate_timings": null,
"default_light_settings": null,
"vibrate_timings": null,
"visibility": null,
"notification_count": null,
"image": null
},
"fcm_options": null
},
"webpush": null,
"apns": null,
"fcm_options": null,
"token": null,
"topic": "auctions",
"condition": null
}
}
Should I set anything else to work as I mentioned above?