[ad_1]
I’ve a push notification setup through Firebase Cloud Messaging Console.
Within the payload, I added sound as my key and custom_sound.wav as my worth.
My sound file (custom_sound.wav) is in Copy Bundled Assets of the venture.
Once I take a look at the notification, the default sound continues to play as a substitute of the customized sound file.
Separate from the notification through the console, the sound does play through Firebase Cloud Capabilities with the same payload I ship.
Can anybody advise?
I used to be trying into dealing with from the delegate perform didReceiveRemoteNotification however learn it solely fires when the notification is tapped on. I additionally printed out the payload from didReceiveRemoteNotification and it prints the “sound” key/worth exterior the “aps” object…
[ad_2]
