Intents are ignored by Appium - need help


I want to start that type of intent:

adb shell am start -a android.intent.action.VIEW -d “app://screen1”

It actually works (and opens a deeplink) in the terminal with regular ADB - but why is that actually not working when I set all needed(?) capabilities for Appium?

        app = new File(appDir, "app.apk");
        capabilities.setCapability("app", app.getAbsolutePath());
        capabilities.setCapability("platformName", "Android");
        //capabilities.setCapability("platformVersion", "5.0.4");
        //capabilities.setCapability("appPackage", "");
        capabilities.setCapability("appActivity", "");
        capabilities.setCapability("intentAction", "android.intent.action.VIEW");
        capabilities.setCapability("optionalIntentArguments","-d \"app://screen1\"");

It simply ignores that intent and starts the app/tests regularly. Any ideas ? Do you support both explicit and implicit intents?

The terminal tells me Appium is using:

adb -s SH51EWM01926 shell am start -S -a android.intent.action.VIEW -f 0x10200000 -n -d “app://screen1”

So basically that:


more or less is the problem ?

How can I get rid of that then ? Usually I would set an empty capability for overwriting the defaults, but for that there is no capability…

Thanks a lot in advance! Best, Daniel

I am also facing the same issue. Any leads on how you got this resolved?