> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/device/exitapp.md).

# exitApp

## Description

Exits from the current mobile app.

## Input / Parameter

N/A

## Output

N/A

## Callback

N/A

## Video

Coming Soon.

## Example

The user wants to exit the current mobile app.

### Steps

| No. | Description                                                                                                                                                                                                  |                                                                                                                                            |
| --- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ |
| 1.  | ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-b28bf7a846e10e2546abe5a5076f8095bc14e7cd%2FexitApp-step-1.png?alt=media) | Drag a button to a page in the mobile designer. Select the event `click` for the button and drag the `exitApp` function to the event flow. |

### Result

When the button is pressed, the mobile app will be closed.

## Links
