• 请不要在回答技术问题时复制粘贴 AI 生成的内容
terlan
V2EX  ›  程序员

如何让一个链接判断是否安装某个 APP,安装了的话直接打开 APP 访问,没有安装的话留在该页面直接访问?

  •  
  •   terlan · Aug 5, 2019 · 3396 views
    This topic created in 2477 days ago, the information mentioned may be changed or developed.
    6 replies    2021-01-22 20:31:32 +08:00
    jinliming2
        1
    jinliming2  
       Aug 6, 2019 via iPhone
    APP 中注册特定的 URI Scheme,PC、Android、iOS 都支持注册。
    网页中直接跳转链接 xxxxx://data 就可以了,其中 xxxxx 是你在 APP 里注册的 scheme,data 是任意 URLEncoded 的数据,可以在 APP 中接收的。
    liduoduo
        2
    liduoduo  
       Aug 6, 2019
    @terlan 比如京东 openapp.jdmobile://
    shawndev
        3
    shawndev  
       Aug 6, 2019
    keyword: universal link, app links
    wlor
        4
    wlor  
       Aug 6, 2019
    浏览器实际上是没有权限判断是否安装某个 app 的 只能先尝试唤起 App 等待几秒没有响应的话就留在页面
    y4ZIZrCL74b9MYl6
        5
    y4ZIZrCL74b9MYl6  
       Aug 6, 2019
    可以看看 linkedme
    https://www.linkedme.cc/
    NoahVI
        6
    NoahVI  
       Jan 22, 2021
    facebook 的弄过吗
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2853 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 06:21 · PVG 14:21 · LAX 23:21 · JFK 02:21
    ♥ Do have faith in what you're doing.