Reader Modal

Overview

Apple allows apps offering digital content - such as magazines, newspapers, books, audio, music, and video - to link externally to their websites for account management and payments. To integrate this functionality, you can use the Reader Modal plugin.

To able to offer this functionality within your app you require special permission from Apple to use the External Link Account entitlement. Apple Documentation.

👍

Developer Demo

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

Implementation Guide

Verify User's Ability to Make Payments

Before displaying and opening the external link to your website, confirm that the user is allowed to make purchases on their device. Use the following Median JavaScript Bridge method:

↔️Median JavaScript Bridge

const { canMakePayments } = await median.readerModal.canMakePayments();

Display the Modal

Once you've verified that the user can make purchases, proceed to show the modal with the following method:

↔️Median JavaScript Bridge

median.readerModal.showModal();

The modal will appear as shown below on devices running iOS 16+.