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.
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 thenavigation 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"
- Show only when there is a page in history (Default):
-
Set page-specific visibility:
- Show on all pages:
"visibilityByPages": "allPages" - Show only on specific pages (using URL patterns):
"visibilityByPages": "specificPages"
- Show on all pages:
-
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.
Set to
true to show the toolbar when the conditions above are met, or false to keep it hidden.
