如何从Facebook的浏览器到Android市场的重定向? [英] How to redirect from Facebook browser to Android market?

查看:262
本文介绍了如何从Facebook的浏览器到Android市场的重定向?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站,还有的是,一旦点击了一个链接,通过一系列重定向,最终应该去应用市场去。

In my site, there is a link that once clicked, goes through a series of redirect that eventually should go to the app market.

最后的重定向URL是一样的东西:

The final redirect URL is something like:

market://details?id=APP-IDENTIFIER

和它是通过调用启动:

window.open(url,"_blank")

在Android上,在常规浏览器时,点击 - 一切运作良好。
当在 Facebook的浏览器打开页面,重定向失败,出现以下消息:

On Android, when clicking in a regular browser - all works well. When opening the page in the facebook browser, the redirect fails with the following message:

该网页无法加载网:: ERR_UNKNOWN_URL_SCHEME

The webpage could not be loaded as" net::ERR_UNKNOWN_URL_SCHEME

我知道,任何应用程序可能会阻止自定义方案访问,但有没有办法解决这个?

I am aware that any app may block custom scheme access, but is there a way to overcome this?

推荐答案

看来这个问题是很奇怪通过调用启动重定向链解决:

It seems that the problem is oddly solved by starting the redirect chain by calling:

window.open(URL,_顶)

而不是* _blank。

instead of *_blank.

这篇关于如何从Facebook的浏览器到Android市场的重定向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆