2021年6月12日 星期六

adb 使用 android.intent.action.VIEW 開啟 deeplink 會缺少部分網址(query的部分)

 這幾天在重構公司的 deeplink 事件,tune 的時候使用 adb 發事件給 android 後發現有帶 query 的網址會少 query 那一段


原本指令

adb shell am start -a android.intent.action.VIEW -d "https://aaa.183club.com/5566/633.html?tab=817&action= fate&value=9478" com.qqq.aaa.ddd


在所有 "&" 前加上 "\" 就可以正常顯示

adb shell am start -a android.intent.action.VIEW -d "https://aaa. 183club.com/5566/633.html?tab= 817\&action=fate\&value= 9478" com.qqq.aaa.ddd


加上 "-W" 可以多看到 Intent 的內容與一些狀態資訊!

adb shell am start -W -a android.intent.action.VIEW -d "https://aaa. 183club.com/5566/633.html?tab= 817\&action= fate\&value= 9478" com.qqq.aaa.ddd


打完收工!

沒有留言:

張貼留言