registerOnNotificationClickedEvent method
Implementation
@override
Future<TencentCloudChatPushResult> registerOnNotificationClickedEvent({
required Function({required String ext, String? userID, String? groupID}) onNotificationClicked,
}) async {
try {
_tencentCloudChatPushModal.onNotificationClicked = onNotificationClicked;
_methodChannel.setMethodCallHandler(_tencentCloudChatPushModal.handleMethod);
await _methodChannel.invokeMethod("registerOnNotificationClickedEvent");
return TencentCloudChatPushResult(code: 0);
} on PlatformException catch (e) {
return TencentCloudChatPushResult(
code: int.tryParse(e.code) ?? -1,
errorMessage: e.message,
);
}
}