Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 颤振本地通知中来自本地存储的自定义音调_Flutter_Notifications_Android Notifications_Custom Notification_Flutter Notification - Fatal编程技术网

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”,
);
}