checkAndroidPushChannelStatus method

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

Android 查询推送通道状态

Implementation

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

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