Skip to main content
JavaScript added via the configuration panel is automatically injected into both iOS and Android versions of your app. You can also apply platform-specific scripts when needed.

Use your AI agent

Use the Median MCP with your AI agent to replace your app's custom JavaScript. See Median MCP server to set it up.

The MCP can’t read your current JavaScript, so give your agent the complete script you want.

Injecting JavaScript without <script> tags

JavaScript should be written exactly as it would appear in a standalone .js file. Do not include HTML tags like <script>. The code will automatically be executed when your site loads in the app.

Example: Send device info on your login page

Use the Median JavaScript Bridge to access device information and send it to your server, such as during sign-in or registration flows:
Last modified on December 1, 2026