initPush method
注册推送
Implementation
@override
Future<Map<dynamic, dynamic>> initPush({
String? appKey,
String? appSecret,
}) async {
if (Platform.isIOS) {
Map<dynamic, dynamic> initResult =
await methodChannel.invokeMethod('initPushSdk', {
'appKey': appKey,
'appSecret': appSecret,
});
return initResult;
} else {
Map<dynamic, dynamic> initResult =
await methodChannel.invokeMethod('initPush');
return initResult;
}
}