简体   繁体   English

在 webview 中打开 url React 本机推送通知

[英]Open url in webview React native push notification

I want to develop an app where I can send remote push notifications to react native app.我想开发一个应用程序,我可以在其中发送远程推送通知来响应本机应用程序。 The push notification will contain a url link and when a user clicks on that link, the app should open up that link in the app (webview)推送通知将包含一个 url 链接,当用户单击该链接时,应用程序应在应用程序中打开该链接 (webview)

Is this possible with react native or expo?反应原生或世博会可能吗?

This is definitely possible, however, there are a number of variables to consider with this in order to give clear direction on how to accomplish the desired outcome.这绝对是可能的,但是,有许多变量需要考虑,以便为如何实现预期结果提供明确的方向。 For example, how are you handling push notifications?例如,您如何处理推送通知? Expo Push Notifications is pretty simple solution. Expo Push Notifications 是一个非常简单的解决方案。 How are you handling users in your app (are they logging in, subscribing to certain push notifications, anonymous, etc.).您如何处理应用中的用户(他们是否登录、订阅某些推送通知、匿名等)。 This is important information to know what the next steps are.这是了解下一步是什么的重要信息。

Here is some documentation from Expo on notifications API:以下是 Expo 上有关通知 API 的一些文档:

https://docs.expo.io/versions/latest/sdk/notifications/ https://docs.expo.io/versions/latest/sdk/notifications/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM