[英]How to check using jsp whether an app is installed in mobile or not?
I am working on a mobile website. 我正在移动网站上工作。 We are showing a default screen on mobile website with 2 options. 我们正在移动网站上显示一个默认屏幕,其中包含2个选项。 1. Open in app 2. Continue to mobile site 1.在应用中打开2.继续访问移动网站
now I have to check when user chooses Open in App, if App is already installed on mobile, open App. 现在,我必须检查用户何时选择“在App中打开”,如果已经在移动设备上安装了App,请打开App。 If not go to play store. 如果没有去玩商店。 Right now it is going to play store anyway. 现在无论如何它都会发挥作用。 How can I verify this, please suggest. 我该如何验证,请提出建议。
You can register an intent filter for a specific URI in the manifest. 您可以在清单中为特定的URI注册一个意图过滤器。 Whenever the URI is resolved by the system (for example when you click on it in the browser) you application would be notified and could start up. 每当系统解析URI时(例如,当您在浏览器中单击URI时),您的应用程序就会收到通知并可以启动。 See also this so entry . 另请参阅此条目 。 But that does not handle the automatic redirect to the play store if the app is not installed. 但是,如果未安装该应用程序,则无法处理自动重定向到Play商店的操作。 Maybe deep linking could do the job for you. 也许深层链接可以为您完成这项工作。 This talk may also be relevant for deep linking. 该演讲可能与深层链接有关。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.