FirebasePushNotificationPlugin icon indicating copy to clipboard operation
FirebasePushNotificationPlugin copied to clipboard

Android: custom sound not played - only default sound

Open ghost opened this issue 6 years ago • 2 comments

Hi!

I am using the FirebasePushNotification Plugin in it's version 2.3.6. I have configured the plugin like described and have generated a JSON-Payload (data and notification) that I am sending from my server to the FCM Service. In this JSON I have listed the filename of the my custom sound ('customsound.wav') that should be played when notification reaches a device.

NOW my problem is: Push Notification messages come in but my custom sound is not being played. Only the default sound will be played.

ghost avatar Jan 07 '20 16:01 ghost

Have same problem, help please.

MODERN122 avatar Sep 12 '20 09:09 MODERN122

I am facing the same issue.

I also tried to set the sound by specifying the SoundUri without success.

FirebasePushNotificationManager.SoundUri = Android.Net.Uri.Parse(
    $"android.resource://{Context.PackageName}/{Resource.Raw.notification_sound}");

Any help would be highly appreciated.

daniel-leinweber avatar Nov 17 '21 10:11 daniel-leinweber