Flutter 颤振本地通知中来自本地存储的自定义音调
我可以为Flutter 颤振本地通知中来自本地存储的自定义音调,flutter,notifications,android-notifications,custom-notification,flutter-notification,Flutter,Notifications,Android Notifications,Custom Notification,Flutter Notification,我可以为flatter\u local\u通知使用自定义音调,但我希望我的用户能够从他/她的移动设备中选择通知音调,因为WhatsApp允许您从本地存储中选择任何通知声音 有什么办法吗? 如果你想看到代码,请让我知道我会更新更多 showNotification()异步{ var android=AndroidNotificationDetails('id','channel','description', 优先级:优先级,高, 重要性:重要性.max, playSound:没错, 声音:Ra
flatter\u local\u通知使用自定义音调
,但我希望我的用户能够从他/她的移动设备中选择通知音调,因为WhatsApp允许您从本地存储中选择任何通知声音
有什么办法吗?
如果你想看到代码,请让我知道我会更新更多
showNotification()异步{
var android=AndroidNotificationDetails('id','channel','description',
优先级:优先级,高,
重要性:重要性.max,
playSound:没错,
声音:RawResourceAndroidNotificationSound('xperia');
var iOS=IOSNotificationDetails(
声音:“xperia.mp3”,
);
var平台=新通知详细信息(
安卓:安卓,
iOS:iOS,
);
等待"地方通知"节目(
0,
widget.serviceName,
“服务已成功订阅!”,
平台,
有效载荷:“xperia”,
);
}