Created
October 6, 2016 04:06
-
-
Save duynhm/c933e6e9e66ccbacb925dd072d78dbbb to your computer and use it in GitHub Desktop.
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
//test deeplink | |
//syntax | |
adb shell am start | |
-W -a android.intent.action.VIEW | |
-d <URI> <PACKAGE> | |
//examples: | |
adb shell am start -W -a android.intent.action.VIEW -d "deeplink://screen" <package-name> | |
adb shell am start -W -a android.intent.action.VIEW -d "http://example.tk/customer" <package-name> |
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
<intent-filter > | |
<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.example.com/gizmos” --> | |
<data android:scheme="http" | |
android:host="example.tk" | |
android:pathPrefix="/customer" /> | |
</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" /> | |
<!-- Accepts URIs that begin with "http://www.example.com/gizmos” --> | |
<data android:scheme="deeplink" | |
android:host="screen" /> | |
</intent-filter> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment