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

前端 未结 11 675
孤街浪徒
孤街浪徒 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:59

    Try this:

    adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d 'yourdeeplink'
    
    -a android.intent.action.VIEW -> action  -c android.intent.category.BROWSABLE -> category -d 'deeplink' -> data 
    

    and also you need to install the app first in order to register the deeplink.

提交回复
热议问题