How do I open iframe links in my default browser?

I have a built-in YouTube player in the PhoneGap app.

When a user clicks on the Youtube logo, they are taken to the YouTube site (in the PhoneGap web browser) and cannot return to the app.

I removed the plugin inappbrowser

, but Youtube still opens inside the app.

As a bad UX situation, Apple also rejected the app.

Any thoughts?

+3


source to share


1 answer


Another bad solution, but more elegant.

The idea is the same: to prevent links from opening from the iframe in order to prevent navigation in the app-webview.



This can be done with the sandbox iframe command as described in this answer: Prevent links in iframe for cordova website navigation / hijacking, especially on ios

0


source







All Articles