appium_app_lifecycle
Manage mobile app lifecycle on iOS and Android by installing, launching, terminating, backgrounding, clearing data, checking state, and handling deep links.
Instructions
Manage app lifecycle, installation, state, data, and deep links.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Android package or iOS bundle ID; takes precedence over name. | |
| url | No | URL for deep_link (e.g. https://example.com or myapp://path). | |
| name | No | Human-readable app name resolved to an ID; alternative to id. | |
| path | No | App file path; required for install. | |
| action | Yes | activate: foreground app; terminate: stop app; is_installed: check installation; clear: clear app data without uninstalling (all require id or name). install: requires path. uninstall: requires id/name; Android keepData is optional. list: optional iOS applicationType. query_state: get state 0=not installed,1=not running,2=background suspended,3=background,4=foreground (requires id or name). background: send foreground app to background; optional seconds (default 5). deep_link: requires url; id/name is optional. | |
| seconds | No | Background duration; default 5. Use -1 to remain in background. | |
| keepData | No | Android uninstall: preserve app data and cache. | |
| sessionId | No | Session ID to target. If omitted, uses the active session. | |
| waitForLaunch | No | Android deep_link: wait for the activity to return; default true. | |
| applicationType | No | iOS list filter: User (default) or System. |