turnOnAndroidPushChannel method

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

Android 开启推送通道

Implementation

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

  Map<dynamic, dynamic> result =
      await methodChannel.invokeMethod('turnOnPushChannel');
  return result;
}