clearNotifications method

  1. @override
Future<Map> clearNotifications()
override

清除所有通知

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;
}