简体   繁体   English

如何从Facebook浏览器重定向到Android市场?

[英]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>

  • if the app is not blocking, the Play Store will open with no issues 如果应用程序没有阻止,则Play商店将正常打开
  • if the app is blocking launching of apps, at least you'll show the Play Store page. 如果应用阻止启动应用,则至少会显示“ Play商店”页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 未安装应用程序时如何将用户重定向到(android,ios)市场 - how to redirect the user to the (android ,ios) market when the app doesnt installed 将网站从 facebook web 浏览器重定向到手机的默认浏览器 - Redirect website from facebook web browser to mobile's default browser 如何将用户从移动浏览器重定向到应用程序(android 和 ios) - How to redirect user from mobile browser to Apps (android & ios) 如何将链接重定向到Google Play Market? - How to redirect links to Google Play Market? 有没有办法从Facebook浏览器(onClick)重定向用户强制URL在chrome或任何其他浏览器中打开? - Is there a way to redirect users from facebook browser (onClick) enforcing the URL to open in chrome or any other browser? 如何从 IE 重定向到其他浏览器? - How to do redirect to others browser from IE? 如何将应用程序从浏览器重定向到 safari? - How to redirect apps from browser to safari? 如何从强制门户(CNA浏览器)重定向到默认浏览器 - How to redirect to default browser from captive portal (cna browser) 从WEB(js)重定向到Windows Phone应用程序(未安装时-推向市场) - Redirect from WEB (js) to Windows Phone app (when not installed - to market) 使用 JavaScript 从应用内浏览器重定向到 Android 上的 Google Chrome - Redirect from in-app-browser to Google Chrome on Android using JavaScript
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM