initPush method

  1. @override
Future<Map> initPush({
  1. String? appKey,
  2. String? appSecret,
})
override

注册推送

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