Install the file and start the app on the device

To install and launch the app, include the following code in your Appium script.

If you chose to not automatically launch the app through the autoLaunch capability, use the AppiumDriver's launchApp() method to start the application that was specified by the appPackage or bundleID capability.

Copy
Install and launch the app
//install and start application iOS with autoLaunch
capabilities.setCapability("autoLaunch",true);  
capabilities.setCapability("fullReset",true);  
capabilities.setCapability("app","PRIVATE:applications/Errands.ipa");
capabilities.setCapability("bundleId", "com.yoctoville.errands");

//start application Android 
capabilities.setCapability("appPackage", "com.google.android.keep");
capabilities.setCapability("appActivity", ".activities.BrowseActivity");