> ## Documentation Index
> Fetch the complete documentation index at: https://docs.median.co/llms.txt
> Use this file to discover all available pages before exploring further.

# App resumed callback

> Run JavaScript when your app returns from the background.

> [!NOTE]
>
> **Note**
>
> On Android, `median_app_resumed()` is also triggered after any native permission prompt.

You can define `median_app_resumed()` directly on your web page or within your [Custom JavaScript](https://docs.median.co/docs/custom-js.md) configuration.

> [!TIP]
>
> **Test  with our demo page**
>
> We host a ready-made demo page at
>
> that calls the  features through the Median JavaScript Bridge.
> Load it inside your Median app during development, either by setting it
> as your app's website URL in App Studio or by navigating to it from your
> own site, and use it to confirm  works on a real device before
> you add it to your own pages.
>
> The demo page only works inside a Median app with  enabled.
> Opened in a regular mobile or desktop browser, the native features
> won't respond. Remember to switch your app back to your own URL before
> release.

## Native auto-reload plugin for kiosk and signage apps

For Android apps used in kiosk or digital signage environments, we offer a custom native plugin that reloads app content at predefined intervals, bypassing JavaScript entirely. This ensures consistent and reliable refresh behavior, even in edge cases.

[Contact our team](https://median.co/contact?topic=sales-inquiry) to learn more about implementing this native solution.

## Demo

See the demo below to view the `median_app_resumed` callback log and run custom JavaScript when the app resumes from the background.

![Demo app logging the median\_app\_resumed callback when the app returns from the background](https://mintcdn.com/median-co/dZQPJ_0wlG7WNBTy/images/docs/11e3683d65ba1b838f8c2a5c75f6f9a24b59461b986b3e92328a975a5962e844-app-resumed.gif?s=d383fd332c95e95b1effda6c746aa612)

Median app resumed demo


## Related topics

- [Changelog archive](https://docs.median.co/docs/changelog-archive.md)
- [JavaScript Bridge overview](https://docs.median.co/docs/javascript-bridge.md)
- [Link behavior](https://docs.median.co/docs/internal-vs-external-links.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.