frontman
V2EX  ›  iPhone

怎么用 javascript 判断 iPhone 上是否安装了某个 app

  •  
  •   frontman · Aug 20, 2014 · 13186 views
    This topic created in 4360 days ago, the information mentioned may be changed or developed.
    我想要的效果是 在一个html页面上通过javascript判断iPhone上有没有安装一个app 如果安装了就打开app 如果没有安装 那么打开appstore , javascript可以做到么 要怎么做.
    1 replies    2014-08-21 08:22:14 +08:00
    dingtianran
        1
    dingtianran  
       Aug 21, 2014
    这个大概有帮助:
    http://stackoverflow.com/questions/6964515/launching-app-or-app-store-from-safari
    首先这个app必须在plist里面声明了某个URL scheme比如tweetbot://
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3155 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 14:06 · PVG 22:06 · LAX 07:06 · JFK 10:06
    ♥ Do have faith in what you're doing.