检查从Web应用程序已安装Android / iOS应用程序? [英] Check if android/iOS app installed from web app?

查看:257
本文介绍了检查从Web应用程序已安装Android / iOS应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序,iOS应用程序,以及HTML5应用程序,我希望能够从我的HTML5应用程序来查看用户是否安装了Android或iOS应用。我明白这本身可以在两个各自平台来完成,但有一种方法来检查,如果本机应用程序从一个web应用程序安装?我已经注册了两个原生应用URI方案,有没有办法从我的网站,以检查是否安装这些应用程序?

I have an android application, an iOS application, and an HTML5 application and I want to be able to check from my HTML5 app whether users have the Android or iOS app installed. I understand this can be done natively in both respective platforms, but is there a way to check if a native app is installed from a web app? I have registered uri schemes on both native apps, is there a way to check from my web if these apps are installed?

推荐答案

没有,真的没有。如果你已经设置的应用程序来处理URI的,那么你可以做一些两轮牛车如果它安装到启动应用程序,并显示其他东西,如果它不是。无需启动应用程序,虽然据我知道你不能做到这一点(和它会是用户隐私问题,如果你能)。

No, not really. If you've setup the app to handle URIs, then you can do some hackery to start the app if it's installed and display something else if it's not. You can't do it without launching the app though as far as I know (and it'd be a user privacy issue if you could).

这篇关于检查从Web应用程序已安装Android / iOS应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆