closeApp
Close a specific app or the currently active app on the device.
Note: Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the
mobile:execute method.
If no bundleId (iOS) or appId (Android) is provided, the command will automatically detect and close the currently active app.
Usage
browser.closeApp({ bundleId, appId })
Parameters
| Name | Type | Details |
|---|---|---|
optionsoptional | object | Options for closing the app (optional) |
options.bundleIdoptional | string | The bundle ID of the iOS app to close. If not provided, the currently active app is closed. iOS-ONLY |
options.appIdoptional | string | The package name of the Android app to close. If not provided, the currently active app is closed. ANDROID-ONLY |