WebToAppMaker

App Features

Exit Blocker

Control Android back-button exit behavior with direct-exit URLs, an optional confirmation dialog, and double-back toast flow.

Before you start

  • A decision about how users should leave the root page
  • Optional confirmation and toast copy

Configure and verify

  1. Choose root behavior

    By default, the first back press at the final app screen shows a Press back again to exit toast; a second press within the short window exits.

  2. Customize double-back

    Turn the behavior on or off and edit the first-press message. This control remains available even when the optional confirmation dialog is disabled.

  3. Configure confirmation

    Enable the double-back confirmation dialog to show message, confirm label, and cancel label after the relevant back action.

  4. Add direct-exit URLs

    List pages where pressing back at the root should close directly, one rule per line.

  5. Test every state

    Verify WebView history goes back first, an open drawer closes first, confirmation cancel keeps the app open, and direct-exit rules match only intended URLs.

Decision order

WebView has history
Navigate back in the site
Drawer is open
Close the drawer
Direct-exit URL matches
Exit according to configured direct behavior
Confirmation enabled
Show confirmation dialog
Double-back enabled
Show toast, then exit on second press
Both disabled
Exit directly

Test before release

  • Website history works
  • Drawer closes first
  • Toast appears when enabled
  • Confirmation buttons work
  • Direct-exit rules are narrow