Skip to main content
This documentation provides instructions and sample code for accessing Median callback data within an iframe. For clarity, all styling classes and attributes have been omitted.
DisclaimerThis documentation provides a proof of concept for accessing Median callback data within an iframe. We advise reviewing the implementation with your security team, as your parent page, along with the callback function that sends data to the iframe, may be publicly accessible. It is strongly recommended to follow best practices to prevent any potential data leaks.

Parent page setup

To support callbacks, you need to define a deviceInfoCallback function which is invoked by the iframe and sends the data to the iframe.

Iframe setup

The iframe must implement a command using a custom URL protocol and be configured to listen for messages from the parent window.

Demo app

The following demo applications for iOS and Android demonstrate the behavior based on the provided code snippets above.
Last modified on November 7, 2026