Deep-linking intent does not work

前端 未结 12 1070
旧时难觅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:19

    After some tests this is what worked for me:

        
            
                
                
                
                
                
            
        
    

    This works when clicking any link in the browser such as "http://www.example.com", "http://www.example.com/" or "http://www.example.com/whatever". The same with "myschema://example/whatever".

    Also works with adb using this command (with any of those URLs):

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

    Hope it helps to get you started.

    When everything is working you will probably want to configure a different pathPrefix for different activities.

提交回复
热议问题