
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: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 themedian.navigationTitles.set() JavaScript Bridge function to set the values. To set the example navigation title run the following:
Set to
true to save the navigation titles for the next time the app launches. Otherwise, they only take effect for the current session.The navigation titles. Leave it out to go back to the titles configured at build time, as shown below.
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 eitherurl or image.
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.
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
Error
JSON
callback function instead, it receives { success: false, error: { code, message } } on failure.