简体   繁体   English

Android App-Index开放Play商店

[英]Android App-Index Opening Play Store

So I've been playing around with deep linking and I've got that sorted (Urban Airship). 所以我一直在玩深度链接,我已经排序了(Urban Airship)。 I'm looking at app indexing from Google search results and I'm struggling to get it going. 我正在看谷歌搜索结果的应用程序索引,我正在努力让它继续下去。 For now, I've got a basic web server up with page with links that should open the app / deep link. 现在,我已经有一个基本的Web服务器,页面上有链接, 应该打开应用程序/深层链接。 However, all it does is open the Play Store page of the app... 但是,它只是打开应用程序的Play商店页面...

This is the link on the page: 这是页面上的链接:

<a href="intent://app.com/product/1#Intent;scheme=http;package=com.package;end">Deep Link</a>

Obviously with my package etc. 显然我的包裹等

This is my intent filter: 这是我的意图过滤器:

<intent-filter>
    <action android:name="android.intent.action.VIEW" />

    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />

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

Why is it opening the Play Store and not my app? 为什么打开Play商店而不是我的应用?

Thanks 谢谢

Solved. 解决了。

Turns out my Intent Filter was not on the right activity. 结果我的Intent Filter没有合适的活动。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM