Exit Blocker

Last updated: May 22, 2026

The Exit Blocker prevents users from accidentally closing your app by requiring a double back-press to exit. On the first press, a confirmation dialog appears. The user must press back again — or tap the confirm button — to actually close the app.

This is especially useful for single-page apps or app-like websites where the back button doesn't navigate to a previous page, making it easy for users to exit unintentionally.

Double Back Press to Exit

Toggle whether the confirmation dialog is shown when the user presses the back button while on the last page in the navigation stack.

  • Default: Disabled

Confirmation Message

The message displayed in the dialog.

  • Default: Are you sure you want to close this app?
  • Maximum length: 300 characters

Confirm Button Text

The label on the button that closes the app.

  • Default: Yes
  • Maximum length: 50 characters

Cancel Button Text

The label on the button that dismisses the dialog and keeps the app open.

  • Default: No
  • Maximum length: 50 characters

Direct Exit URLs

You can specify pages where the back button immediately closes the app — bypassing both the navigation stack and the confirmation dialog. This is useful for pages that you want to treat as "exit points," such as a home screen or a goodbye page.

Enter one domain, full URL, or URL fragment per line. Wildcard patterns (*) and exact match brackets [ ] are supported.

ExampleMatches
example.com/homeAny URL containing /home
[example.com/goodbye]Only the exact URL example.com/goodbye
Tip: Add your app's homepage to the direct exit list so that pressing back from the home screen exits immediately, while pressing back from any other page still navigates normally.