【问题标题】:How can I make my site open Instagram in-app?如何让我的网站在应用内打开 Instagram?
【发布时间】:2019-05-16 14:49:58
【问题描述】:

您好,我希望我的网站自动重定向到 Instagram 页面。我发现这个网站有点显示我需要的代码,但如果 Android / iPhone 不同。现在我的问题是有没有办法识别用户正在使用哪款智能手机。并使用适合其操作系统的正确代码自动打开应用程序?

使用本站https://app.urlgeni.us/#/

<a href="intent://instagram.com/_u/kopstootkompanen/#Intent;package=com.instagram.android;scheme=https;end"><img src="https://q-play.nl/wp-content/uploads/2018/08/android-logo-png-transparent.png" style="width:182px; height:186px" title="Android" alt="Android"></a>

使用我目前拥有的代码,用户首先需要选择他们的操作系统,但我不希望这样。

【问题讨论】:

    标签: html redirect mobile instagram url-redirection


    【解决方案1】:

    你不需要那个。考虑到 url,每部手机都有自己的应用路径。如果您打开某个 http://.facebook.com/ URL,手机会被要求在浏览器或 Facebook 应用程序上打开它。这是智能手机的原生功能,用户可以选择始终通过应用打开 instagram.com 网址。

    所以,我想这是最好的方法,即使您的用户可能因为 N 个原因甚至没有安装应用程序。

    【讨论】:

      【解决方案2】:

      如果您将 href 设置为 instagram:// 并且用户安装了应用程序(并且他们在移动设备上),那么它应该打开 instagram

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2014-09-20
        • 2017-10-07
        • 2015-04-01
        • 2020-10-03
        • 2016-02-03
        • 1970-01-01
        • 2015-01-21
        相关资源
        最近更新 更多