Dynamic Visibility

📘

The iOS Contextual Navigation Toolbar can be enabled and disabled dynamically from your website using the GoNative Javascript Bridge.

When enabled: true the toolbar will be displayed if one of the following conditions are satisfied:

  • the webview has back history
  • the forward button is enabled in the configuration and the webview has forward history
  • the refresh button is enabled in configuration

When enabled: false the toolbar will be hidden regardless of any other condition

️GoNative JavaScript Bridge

// Show the contextual navigation toolbar, if conditions are met
gonative.ios.contextualNavToolbar.set({"enabled":true});
// Hide the contextual navigation toolbar
gonative.ios.contextualNavToolbar.set({"enabled":false});