createAndroidChannelGroup method

  1. @override
Future<Map> createAndroidChannelGroup(
  1. String id,
  2. String name,
  3. String desc
)
override

创建通知通道的分组

Implementation

@override
Future<Map<dynamic, dynamic>> createAndroidChannelGroup(
    String id, String name, String desc) async {
  if (!Platform.isAndroid) {
    return {
      'code': kAliyunPushOnlyAndroid,
      'errorMsg': 'Only support Android',
    };
  }

  Map<dynamic, dynamic> result = await methodChannel.invokeMethod(
      'createChannelGroup', {'id': id, 'name': name, 'desc': desc});
  return result;
}