[英]How to redirect from Facebook browser to Android market?
In my site, there is a link that once clicked, goes through a series of redirect that eventually should go to the app market. 在我的网站上,有一个链接,一旦单击,就会进行一系列重定向,最终应转到应用程序市场。
The final redirect URL is something like: 最终的重定向URL类似于:
market://details?id=APP-IDENTIFIER
And it is started by calling: 它是通过调用以下命令开始的:
window.open(url,"_blank")
On Android, when clicking in a regular browser - all works well. 在Android上,在常规浏览器中单击时-一切正常。 When opening the page in the facebook browser , the redirect fails with the following message:
在facebook浏览器中打开页面时,重定向失败,并显示以下消息:
The webpage could not be loaded as" net::ERR_UNKNOWN_URL_SCHEME
该网页无法加载为“ 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,"_top")
instead of *_blank. 而不是* _blank。
don't user the market://
identifier, but the actual play store link https://play.google.com/store/apps/details?id=<APP-ID>
不要使用
market://
标识符,而是实际的Play商店链接https://play.google.com/store/apps/details?id=<APP-ID>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.