I need to set custom sound
for only my application
. I've assigned a custom ringtone from my storage to be used in notifications.
What did I try...
(NotificationChannel) channel.setSound(Uri.parse("MY_PATH"), audio_atrr);
(NotificationCompact.Builder) mBuilder.setSound(Uri.parse("MY_PATH"));
(Notification) mNotification.sound = Uri.parse("MY_PATH");
It's useless for me, my device always plays the default sound when a notification is coming. what can i do?