如何通过电子邮件(GMail)从链接启动Android应用程序

时间:2017-08-08 17:54:50

标签: android

我希望能够通过电子邮件中的链接启动Android StubHub应用程序。如果你google" Giants Tickets"你可以找到这个链接的一个例子。使用移动设备。以下是谷歌搜索页面上的锚定代码,该代码将启动StubHub的应用程序并显示SF巨人事件列表。

<a class="_Mek" data-packageid="com.stubhub" data-url="intent://stubhub.com/?performer_id=197&amp;GCID=AppLinks:Performer#Intent;scheme=stubhub;package=com.stubhub;S.browser_fallback_url=https%3A%2F%2Fwww.stubhub.com%2Fsan-francisco-giants-tickets%2Fperformer%2F197%2F;S.android.intent.extra.REFERRER_NAME=https%3A%2F%2Fwww.google.com;launchFlags=0x8080000;end" data-weburl="https://www.stubhub.com/san-francisco-giants-tickets/performer/197/" href="https://www.stubhub.com/san-francisco-giants-tickets/performer/197/" jsaction="bct.cbc" data-ved="0ahUKEwjgid2GmcjVAhVRzWMKHTlaDoQQjjgIXzAA">San Francisco Giants tickets - SF Giants tickets on StubHub!</a>

我假设谷歌在搜索页面上有与上述html交互的附加代码。

如何在电子邮件中包含类似的链接,点击后会启动Android应用程序并带我进入巨人票页?

2 个答案:

答案 0 :(得分:1)

您可以尝试使用Deep Links to App Content Check here

答案 1 :(得分:1)

Muthukrishnan是对的,看起来Google正在使用Stubhub深层链接。因此,Stubhub可能已经内置了对深层链接的支持,而这只是谷歌链接的逆向工程问题。首先尝试创建这样的链接:

intent://stubhub.com/?performer_id=197

我敢打赌,Stubhub的应用程序已经有了类似的清单:

<intent-filter>
  <data android:scheme="intent" android:host="stubhub.com" />
</intent-filter>

而performer_id 197可能是巨人队的身份证。

相关问题