2

I need to play a custom alert for push notifications and I'm using flutter_local_notification. I have added an audio file in android/app/src/main/res/raw/ and also enabled playSound to true, but it still plays the default sound. Is there anything I missed?

    var androidPlatformChannelSpecifics = const AndroidNotificationDetails(
      'channel_id',
      'channel_name',
      enableLights: true,
      enableVibration: true,
      sound: RawResourceAndroidNotificationSound("notification"),
      playSound: true,
      
     

enter image description here

Akhil
  • 419
  • 5
  • 15

0 Answers0