移动网页上的原生应用检测 [英] Native app detection from web page on mobile
本文介绍了移动网页上的原生应用检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能检测某些协议是否处理原生app。 (比如Skype for skype:,facetime for facetime://等)使用网页内的任何javascript和/或html5功能安装在移动设备上?
谢谢
Hi,
Is there a possibility to detect whether some protocol handling native app. (like Skype for skype:, Facetime for facetime://, etc.) are installed on a mobile device using any javascript and/or html5 features from within webpage ?
Thanks
推荐答案
由于安全原因,我担心在哪里没有常见的方法。
其中一个想法是在UI级别进行验证:处理点击URL并等待计时器上的焦点丢失,悬停等事件。如果页面失去焦点 - 某些应用程序已经启动。
I''m afraid where is no common way to do this due to security reasons.
One of the thoughts is to do validation on UI level: handle click on URL and wait on focus lost, hover, etc. events on timer. If page lost focus - some application lunched.
这篇关于移动网页上的原生应用检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文