【问题标题】:Start app with android chrome, first time download it使用android chrome启动应用程序,第一次下载它
【发布时间】:2015-06-22 09:12:33
【问题描述】:

如果应用程序在我的手机中,它会启动它,但如果不是,请下载它。 这是代码:

window.location = 'intent://' + schemeUrl + '#Intent;scheme=' + scheme + ';end';
            setTimeout(function() {
                self._gotoDownload(startTime);
            }, self.openTime);

它在其他浏览器上运行良好,但是在chrome中,如果我的手机没有安装这个应用程序,它会打开一个错误页面。我尝试使用iframe加载'intent...',但仍然没有工作。

【问题讨论】:

  • 我的想法是:window.location = 'intent://' + schemeUrl + '#Intent;scheme=' + scheme + ';end'; setTimeout(function() { window.location.href = "www....." }, 3000);
  • 有人帮忙解决这个问题吗?

标签: javascript html google-chrome iframe


【解决方案1】:

嗯,过了这么多天,还是没有人给我答案。但是我刚刚找到了答案。见open an app in chrome in android

在我的测试中运行良好,谢谢。

【讨论】:

  • 我的手机安装了这个应用程序才可以使用,如果没有,它仍然无法使用。任何人都可以解决这个问题?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-07-29
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多