简体   繁体   中英

Android App-Index Opening Play Store

So I've been playing around with deep linking and I've got that sorted (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. However, all it does is open the Play Store page of the app...

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?

Thanks

Solved.

Turns out my Intent Filter was not on the right activity.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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