Open links from Instagram with one tap on iPhone – InAppBrowserEscaper v1.0.2


In previous version, tapping a website’s ‘open in browser’ button inside instagram on an iPhone could show an unexpected dialog.

In v1.0.2, the button immediately tries to open the page in the iPhone’s default browser. The library shows its dialog only if the website requests it with showModal: true.

What is InAppBrowserEscaper?

A lightweight TypeScript library that helps users escape from in-app browsers (Instagram, Facebook, Telegram, etc) to their default browser for a better browsing experience.

Learn More

What changed?

On iPhone, Instagram can block a website from opening the default browser automatically when the page loads.

v1.0.2 uses the same instagram-specific method introduced in the v1.0.1 update.

What changed is who shows the button. If your website already has one, call escape() directly in its click handler, before any await:.

openInBrowserButton.addEventListener('click', () => {
  InAppBrowserEscaper.escape();
});

The library attempts to open the external browser during the tap.

Leave a Reply

Your email address will not be published. Required fields are marked *