How to check whether iOS app already installed or not? – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> How to check whether iOS app already ...

How to check whether iOS app already installed or not?


Verifies whether the application with given bundle identifier is installed on the device. Returns true or false. bundleId: The bundle identifier of the application, which is going to be verified. Mandatory argument. Simply use this method. Provide your bundleId as an argument and it will give you “true” if the application is already installed else “false”.

Code Snippet:

private boolean isMyAppInstalled(String bundleId) {
Map params = new HashMap<>();
        params.put("bundleId", bundleId);
        return (Boolean) driver.executeScript("mobile: isAppInstalled", params);
}

Leave a Reply

Your email address will not be published. Required fields are marked *