I am using flutter awesome notification and I want user can choose custom sound from their storage. Is it possible to make it? Here is my code to initialize the awesome notification plugin.
AwesomeNotifications().initialize(
'resource://drawable/logo',
[
NotificationChannel(
channelKey: 'alarm_notification',
channelName: 'alarm_notification',
channelDescription: 'Notification channel for alarm',
defaultColor: Color(0xFFFFDA2B),
ledColor: Colors.white,
vibrationPattern: highVibrationPattern,
soundSource: 'resource://raw/slow_spring_board',
importance: NotificationImportance.Max,
)
]
);
and this is my acode to create notification
AwesomeNotifications().createNotification(
content: NotificationContent(
id: alarmId,
channelKey: 'alarm_notification',
title: alarmTitle,
body: alarmBody,
displayOnBackground: true,
displayOnForeground: true,
customSound: "string",
),
schedule: NotificationCalendar(
hour: alarmTime.hour,
minute: alarmTime.minute,
second: 0,
millisecond: 0,
timeZone: "Asia/Jakarta",
repeats: true,
)
);