registerPush method
Implementation
@override
Future<TencentCloudChatPushResult> registerPush({String? configJson}) async {
try {
await _methodChannel.invokeMethod("registerPush", {"push_config_json": configJson ?? ""});
return TencentCloudChatPushResult(code: 0);
} on PlatformException catch (e) {
return TencentCloudChatPushResult(
code: int.tryParse(e.code) ?? -1,
errorMessage: e.message,
);
}
}