Prompt Share Dialogue

Run the following Median JavaScript Bridge command to invoke the native share dialogue on Android and iOS. You may also use the following command in your native sidebar and tab menus.

↔️️Median JavaScript Bridge

To invoke the native share dialogue, open the URL:

median.share.sharePage();

You may also use the following to share a URL other than the current URL:

median.share.sharePage({url: 'https://median.co/about'});

You may also add some text which will be also shared along with the URL that you pass or the current URL:

median.share.sharePage({url: 'https://median.co/about', text: 'Visit Median here'});
iOS Android

Next Steps