App Resumed Callback

When your app is resumed from the background, the JavaScript function median_app_resumed() - if defined on the current page - will automatically be invoked. You can use this function to trigger background data refreshes, update page content, or perform a full page reload using window.location.reload().

📘

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 configuration.

👍

Developer Demo

Display our demo page in your app to test during development https://median.dev/app-resumed-callback/

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 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.

Median App Resumed Demo

Median App Resumed Demo