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