As the latest Appium version(1.8.0) support deeplink and instant app. So any additional utility is no longer required for its handling .
In general , below ADB command required to launch any instant app.
adb shell am start -a android.intent.action.VIEW -d "https://www.viki.com/home"
However if we add the package into this command
adb shell am start -a android.intent.action.VIEW -d “https://www.viki.com/home” *"com.viki.android"
then we got the below error:
Starting: Intent { act=android.intent.action.VIEW dat=https://www.viki.com/… pkg=com.viki.android }
Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=https://www.viki.com/… flg=0x10000000 pkg=com.viki.android }
The same response i got on appium-server when i execute below command to launch instant app.
driver.executeScript("mobile:deepLink ", ImmutableMap.of(“url”, “https://www.viki.com/home",“package”,"com.viki.android”));
temporary workaround:
I added below condition under apk-utils.js to launch instant app with the deeplink command.
condition:
if(pkg.trim()===“test.instantapp”){
pkg="";
}
command:
driver.executeScript("mobile:deepLink ", ImmutableMap.of(“url”, “https://www.viki.com/home","package”,“test.instantapp”));
please i want to launch my application through mobile:deeplink using appium
Did u get the solution ? even I’m stuck with same issue.