使用电容器插件修改推送通知

发布于 2025-02-05 04:39:41 字数 219 浏览 4 评论 0原文

是否可以使用 @Capacitor/Push-Notifications修改传入的推动消息?我正在使用Firebase Cloud Message发送消息到我的Android和iOS应用程序,这些应用程序由我的后端加密,应该被该应用程序解密。为了实现这一目标,我必须在接收到通知中心中显示的消息。

我没有找到有关此文件的任何文件,因此我很感激任何提示实现这一目标。如果不支持这一点,我还可以使用其他解决方案吗?

Is it possible to modify incoming push messages using @capacitor/push-notifications? I‘m sending messages using Firebase Cloud Messaging to my Android and iOS apps, which are encrypted by my backend and should be decrypted by the app. To achieve this, I must modify the messages shown in the notification centers after receiving them.

I didn‘t find any documentation on this, so I would appreciate any hint into achieving this. If this is not supported, is there any other solution I could use?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七色彩虹 2025-02-12 04:39:41

您可以发送数据通知(Android不会自动显示),然后使用@Capacitor/local-Notifications显示修改后的通知。

You can send a data notification (which is not automatically displayed by Android) and then use @capacitor/local-notifications to show the modified notification.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文