Skip to main content
Configure the text that shows in the top navigation bar, either at build time through your app configuration or at run time through the JavaScript Bridge.
iOS top navigation bar showing a page title

iOS navigation bar example

Implementation guide

App configuration

You may specify text titles or set image display for different URLs in the Dynamic Titles options within the Native Top Navigation Bar section of App Studio. For a given URL rule, if “Text” is selected the text provided will be displayed. Otherwise, if “Image” is selected the top nav bar image will be displayed. Rules are prioritized from top to bottom. If no match is found, your app name will be shown. An example JSON formatting for BooyaFitness.com is provided below:
A default navigation title can be defined in the app configuration that is then overwritten dynamically as required. Or alternatively, the configuration can be left blank and all titles set at runtime by your website.

Use your AI agent

Use the Median MCP with your AI agent to show a custom title or your logo in the top navigation bar of your mobile app. See Median MCP server to set it up.

JavaScript Bridge

Create your navigation title structure, and then run the median.navigationTitles.set() JavaScript Bridge function to set the values. To set the example navigation title run the following:
Parameters
boolean
Set to true to save the navigation titles for the next time the app launches. Otherwise, they only take effect for the current session.
object
The navigation titles. Leave it out to go back to the titles configured at build time, as shown below.
To revert the navigation titles to the configuration set at build time, run the following command:
For a one-off setting of the current page’s title, URL encode the desired title and run the following command:
Parameters
string
The title for the current page, URL encoded.

Set a title image at runtime

Show an image in place of the title, such as a logo for the signed-in user’s organization. Parameters Pass either url or image.
string
Image URL. The app downloads it, so the server doesn’t need to allow cross-origin requests. Relative URLs are resolved against the current page.
Blob | string
Image data from your page: a Blob, a data URL, or a base64 string.
Use a PNG, JPEG, or WebP image. SVG images aren’t supported. The image is scaled to the same height as the top navigation bar image set in App Studio, and keeps its aspect ratio. It replaces any title or image already showing. The image applies to the navigation instance that matches the current page, and shows again whenever the user returns to a page of that instance. If your app doesn’t use instances, it applies to every page. It stays until you reset it or the app restarts.
Developer DemoDisplay our demo page in your app to test during development https://median.dev/title-image
resetTitleImage() goes back to the title or image configured at build time. Both methods return a promise. It resolves when the call succeeds, and rejects with an error object if setting the image fails. Response
boolean
required
true when the call succeeds.
Error
string
required
The error code. See the table below.
string
required
A description of the error.
JSON
If you pass a callback function instead, it receives { success: false, error: { code, message } } on failure.
Last modified on December 1, 2026