通过重定向链接在Google Play中打开应用 [英] Opening app in Google Play from a redirect link
问题描述
在Android设备上打开Google Play应用的链接:
https://play.google.com/store/apps/details?id=com.rovio.angrybirds&hl=zh-CN 默认情况下会自动打开Google Play应用程序。 但是,如果您有链接重定向到Google Play链接,设备将打开浏览器,然后导航到Google Play的浏览器版本。为什么会出现这种行为? 不幸的是,我无法使用market://可以打开Play的Intents,我只能控制网页链接。 编辑: 如果链接在浏览器中打开,不管怎样,它都可以重定向到Google Play的浏览器版本,尽管market://在浏览器中不受支持。 基本上, https:// play .. ..只是一个网址。我怀疑它的工作方式(这是Android工作的标准方式)是: 您可以直接通过市场意向呼叫Play Market,或者使用URL方式。我个人使用URL方式 - 尽管使用它还有一些额外的挑战(如处理这个特定问题)。 On an Android device, opening a link to an app on Google Play: https://play.google.com/store/apps/details?id=com.rovio.angrybirds&hl=en will automatically open the Google Play app by default. But if you have a link that redirects to the Google Play link, the device opens the browser and then navigates to the browser version of Google Play. Why does this behavior occur? Unfortunately I cannot use the market:// with Intents which can open Play, I have only control over a web link. edit:
Seems like if I have the link redirect to the market:// url, it can open with Google Play on device. If link is opened in browser, somehow it is able to redirect to browser version of Google Play despite market:// not being supported in browser. Basically, the https://play.... is just a web URL. I suspect the way this works (which is the way standard way Android works) is: You can either call the Play Market directly with the market intent, or use the URL way. I personally use the URL way - even though there are some additional challenges to use it (like handling this particular issue). 这篇关于通过重定向链接在Google Play中打开应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
似乎如果我将链接重定向到market:// url,它可以通过设备上的Google Play打开。 / p>