turnOffAndroidPushChannel method

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

Android 关闭推送通道

Implementation

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

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