Deep-linking intent does not work

前端 未结 12 1091
旧时难觅i
旧时难觅i 2020-12-07 14:29

I followed the insttructions on https://developer.android.com/training/app-indexing/deep-linking.html, but when I want to trigger the intent through adb with:

12条回答
  •  渐次进展
    2020-12-07 15:23

    Thanks Simas for your response i would like to add some clarification:

    • after testing your activity with this command:

      adb shell am start -n com.example.simon.test/.activities.MainActivity

    • You will need to test your deeplinks ,after adding the intent filter to your AndroidManifest.xml file (lines are below):

      ... ...

    so this is the adb command with which you can test :

    adb shell am start -W -a android.intent.action.VIEW -d "http://example.com/gizmos" com.example.packageid
    

    and

    adb shell am start -W -a android.intent.action.VIEW -d "http://example.com" com.example.pakageid
    

提交回复
热议问题