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