难道“三星应用程序的支持的URI方案重定向到特定的应用程序?应用程序、重定向、方案、URI

2023-09-05 06:01:56 作者:Arbitrary 随心所欲

我的一个客户是热衷于促进精简版的版本他的完整的应用程序上的一些流行的三星设备。这个精简版的版本将被上传到 http://www.samsungapps.com ,然后用户将能够通过的在三星应用应用。精简版的版本拥有一个在应用程序链接到完整的应用程序。

One of my customers is keen on promoting a 'lite' version of his full app on a number of popular Samsung devices. This lite version will be uploaded to http://www.samsungapps.com, and users will then be able to download it through the 'Samsung Apps' app. The lite version features an in-app link to the full app.

现在,我一直在寻找三星的网站,了解一个URI方案,三星应用程序可以皮卡和使用的任何信息,直接present与完整的应用程序的相关细节的用户。对于这两种谷歌播放和亚马逊,你可以简单地火了与特定URI方案和应用程序的包名的意图;例如:

Now, I've been searching Samsung's website for any information about a URI scheme that Samsung Apps can pickup and use to directly present the user with the relevant details of the full app. For both Google Play and Amazon you can simply fire off an intent with a specific URI scheme and the app's package name; e.g:

谷歌播放:

marketIntent.setData(Uri.parse("market://details?id=" + FULL_VERSION_PACKAGE_NAME));

亚马逊:

marketIntent.setData(Uri.parse("http://www.amazon.com/gp/mas/dl/android?p=" + FULL_VERSION_PACKAGE_NAME));

这是所有记录和pretty的简单的找到。不过,我一直无法弄清楚,如果三星应用程序提供了类似的行为自己的URI方案。

That's all documented and pretty straightforward to find. However, I haven't been able to figure out if Samsung Apps provides its own URI scheme for similar behaviour.

我不释放,因为我们在谈论Android设备在这里,我可以链接到谷歌播放。它只是似乎很奇怪,我认为三星将提供一个市场化的系统,无需链接到在那里提供特定的产品的能力,所以我希望我忽视的东西。

I do release that since we're talking about Android devices here, I could just link to Google Play. It just appears strange to me that Samsung would offer a market-like system without the ability to link to specific products available in there, so I hope I'm overlooking something.

有没有人对此有什么指点?请注意,我没有一个设备(兼容)与三星应用程序实际测试任何东西。

Does anyone have any pointers on this? Note that I do not have a device (compatible) with Samsung Apps to actually test anything.

推荐答案

于是,我终于找到了答案,我的问题隐藏在一个PDF文档。这是名为的三星应用程序Deeplink指南的并可以从三星的资源中心下载。

So I finally managed to find the answer to my question hidden away in a pdf document. It's titled "Samsung Apps Deeplink Guide" and can be downloaded from Samsung's resource center.

对于整个​​文​​档,其中包含有关如何在Samsung Apps中的应用程序调用特定画面的一些信息不感兴趣,答案很简单。附加的URI 意图的格式如下数据:

For those not interested in the whole document, which contains some information on how to invoke specific screens in the Samsung Apps app, the answer is straightforward. Attach a URI to the Intent's data with the following format:

samsungapps://ProductDetail/<the package name of the AndroidManifest.xml>

例如,直接链接到三星应用程序的三星应用程序(措辞仍然是有意义的?)应该是:

For example, a direct link to the Samsung Apps app in Samsung Apps (phrasing still makes sense?) would be:

samsungapps://ProductDetail/com.sec.android.app.samsungapps

因此​​,应用程序确实支持类似于谷歌播放和亚马逊URI方案,为疑似。

So the app indeed supports a URI scheme similar to Google Play and Amazon, as suspected.

请注意,我一直没能对此进行测试,但我没碰到过最近raised标志(从2012年4月27日),显然这一功能却突然停止工作。根据该标志,三星开发者正在寻找到它的响应,但我可能只是暂缓,直到修复已被证实。

Do note that I haven't been able to test this yet, but I did come across a recently raised flag (from April 27, 2012) that apparently this functionality has suddenly stopped working. According to a response to that flag the Samsung devs are looking into it, but I may just hold off on this until a fix has been confirmed.