clearNotifications method
清除所有通知
Implementation
@override
Future<Map<dynamic, dynamic>> clearNotifications() async {
if (!Platform.isAndroid) {
return {
'code': kAliyunPushOnlyAndroid,
'errorMsg': 'Only support Android',
};
}
Map<dynamic, dynamic> result =
await methodChannel.invokeMethod('clearNotifications');
return result;
}