【问题标题】:Uber universal link not redirecting to the Play Store优步通用链接未重定向到 Play 商店
【发布时间】:2018-01-16 01:39:53
【问题描述】:

我们正在尝试在 Android 上的 WebView 中使用优步通用链接。

根据联盟计划页面文档 (here),我们使用如下链接:https://m.uber.com/ul/?client_id=

当我们在没有 Uber 应用程序的设备上加载带有 WebViewClientWebView 中的 url 时,它会尝试使用其 url 方案重定向到应用程序 (uber://?client_id=xxxx )。这不起作用,因为未安装该应用程序。

但是,当我们在 Chrome 中加载该网址时,它会将我们带到“打开 Play 商店”页面。这是期望的行为。

有没有办法在WebView 中完成这项工作?

【问题讨论】:

    标签: android android-webview uber-api


    【解决方案1】:

    根据Uber Documentation,在 WebView 中使用 m.uber.com 链接被认为是常见错误。而是使用移动浏览器打开链接。

    【讨论】:

      猜你喜欢
      • 2017-03-07
      • 2016-07-02
      • 1970-01-01
      • 2016-05-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-21
      相关资源
      最近更新 更多