turnOnPushChannel function
这个返回结果永远都是true
,并不是SDK初始化结果
初始化结果请监听initCloudChannelResult
只能初始化ios
Implementation
//Future<bool> initCloudChannel({String appKey, String appSecret}) async {
// return await _channel.invokeMethod(
// "initCloudChannel", {"appKey": appKey, "appSecret": appSecret});
//}
Future<CommonCallbackResult> turnOnPushChannel() async {
var result = await _channel.invokeMethod("turnOnPushChannel");
return CommonCallbackResult(
isSuccessful: result["isSuccessful"],
response: result["response"],
errorCode: result["errorCode"],
errorMessage: result["errorMessage"],
);
}