简体   繁体   English

如何使用jsp检查应用程序是否已安装在移动设备中?

[英]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.

相关问题 如何使用Code在浏览器中检查是否安装了Java插件。 - How to check whether Java plugins are installed or not in a browser using Code .? 如何在客户端系统中使用javascript检查是否安装了特定软件? - How to check whether specific software is installed or not using javascript in client system? 如何使用java脚本检查chrome浏览器是否安装? - How to check whether chrome browser is installed or not using java script? 如何使用javascript安装或不安装应用程序 - How to check app is installed or not using javascript Branch.io:javascript检测是否已安装移动应用程序 - Branch.io: javascript detect whether mobile app is installed 如何使用PhoneFormat.js检查输入的手机是固定电话还是手机? - How to check whether the entered mobile is landline or mobile using PhoneFormat.js? 如何检查我的jsp文件是否转换为UTF-8 - How to check whether my jsp file converted to UTF-8 如何检查IE 6/7/8中是否安装了扩展(BHO)? - How can I check whether an extension(BHO) is installed in IE 6/7/8? 如何检查Google Chrome浏览器中是否安装了扩展程序? - How to check Whether an extension is installed in google chrome web browser? 如何检查是否从 web 浏览器安装了应用程序? - How can I check whether an application is installed from a web browser?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM