Skip to main content
iOS-only featureThe iOS Contextual Navigation Toolbar is an iOS-specific feature and is not supported on Android.
Unlike Android devices, iPhones and iPads do not have a built-in back button, which can make web navigation within an app challenging. The Contextual Navigation Toolbar provides a native toolbar at the bottom of the screen, enabling users to navigate more easily based on their browsing history and the current page URL.

Key features

  • Back button: Returns to the previous page.
  • Forward button (optional): Moves forward in browsing history.
  • Refresh button (optional): Reloads the current page.
  • Customizable visibility (optional): Configure when and where the toolbar appears.
By default, the toolbar appears whenever a page exists in the webview history. This matches the back navigation users expect from a website.

Visual toolbar example

Configuration

Default configuration

By default, the toolbar includes a Back button with a text label (< Back). You can modify this behavior by updating the navigation configuration object in appConfig.json.

Configuration options

  • Add buttons:
    • Add a Forward button
    • Add a Refresh button
  • Change toolbar visibility:
    • Show only when there is a page in history (Default): "visibilityByBackButton": "backButtonActive"
    • Always show regardless of history: "visibilityByBackButton": "always"
  • Set page-specific visibility:
    • Show on all pages: "visibilityByPages": "allPages"
    • Show only on specific pages (using URL patterns): "visibilityByPages": "specificPages"
  • Customize button labels and appearance:
    • Hide text labels for Back and Forward buttons
    • Use custom text labels

Use your AI agent

Use the Median MCP with your AI agent to turn the iOS toolbar on or off and choose its buttons in your mobile app. See Median MCP server to set it up.

Dynamic visibility

The iOS Contextual Navigation Toolbar can be dynamically enabled or disabled using the Median JavaScript Bridge. Conditions for toolbar display:
  • enabled: true: The toolbar appears if any of the following conditions are met:
    • The webview has back history.
    • The forward button is enabled and the webview has forward history.
    • The refresh button is enabled.
  • enabled: false: The toolbar remains hidden regardless of other conditions.
Parameters
boolean
required
Set to true to show the toolbar when the conditions above are met, or false to keep it hidden.

Implementation examples

Last modified on December 1, 2026