I am trying to test android deep link urls through adb to launch my app

前端 未结 11 695
孤街浪徒
孤街浪徒 2021-01-30 10:07

When I type the command in adb:

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

I get this error:

11条回答
  •  庸人自扰
    2021-01-30 10:43

    As the other answer mentioned, it should be "example://gizmos" and not "example:gizmos"

    Alternatively, instead of using adb, you can test deep links directly on android using deep link tester app:

    https://play.google.com/store/apps/details?id=com.manoj.dlt

    No need to mention any package name or component name. Just type the deep link and fire.

    I've found testing deep links through adb to be cubersome and difficult at times. Hence, I've built this small app to do it.

提交回复
热议问题