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

# Reader modal

> Show Apple's external link modal in reader apps so users can manage accounts and payments on your website, using the JavaScript Bridge.

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 be able to offer this functionality within your app, you require special permission from Apple to use the **External Link Account entitlement**. Learn more in [Apple's reader apps documentation](https://developer.apple.com/support/reader-apps/).

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

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

```javascript JavaScript  theme={null}
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

```javascript JavaScript  theme={null}
median.readerModal.showModal(); 
```

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

![External link modal sheet shown before leaving the app on iOS](https://mintcdn.com/median-co/TpSItjrYpkPK-i0N/images/docs/bc3c9cee03b3cdbf5bf069b0cbc92006f046d2835aaacd13cfb4aba4cfd18a0c-68093e3e0205e115ad351fa4_Screenshot_2025-04-23_at_16.20.57.png?fit=max\&auto=format\&n=TpSItjrYpkPK-i0N\&q=85\&s=9eaff5b0e259b1e546e39cb599acf695)

In-app modal sheet


## Related topics

- [Changelog archive](https://docs.median.co/docs/changelog-archive.md)
- [Build iOS from source](https://docs.median.co/docs/build-ios-from-source.md)
- [Native functionality](https://docs.median.co/docs/native-functionality.md)


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