Last active
April 7, 2017 12:58
-
-
Save robophil/5a05862b39a3c393d3f5bd3072a686fe to your computer and use it in GitHub Desktop.
Sample <activity> tag to handle deep linking for payporte.com mobile app. See https://developer.android.com/training/app-indexing/deep-linking.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<activity | |
android:name="com.payporte.mobile.ProductActivity" | |
android:label="@string/category_title" > | |
<intent-filter android:label="@string/filter_title_product"> | |
<action android:name="android.intent.action.VIEW" /> | |
<category android:name="android.intent.category.DEFAULT" /> | |
<category android:name="android.intent.category.BROWSABLE" /> | |
<!-- Accepts URIs that begin with "http://www.payporte.com/category” --> | |
<data android:scheme="http" | |
android:host="www.payporte.com" | |
android:pathPrefix="/products" /> | |
<data android:scheme="https" | |
android:host="www.payporte.com" | |
android:pathPrefix="/products" /> | |
<!-- note that the leading "/" is required for pathPrefix--> | |
<!-- Accepts URIs that begin with "payporte://products” --> | |
<data android:scheme="payporte" | |
android:host="products" /> | |
</intent-filter> | |
</activity> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment