3

I've a embeded YouTube player in a PhoneGap app.

When user clicks on the Youtube's logo he goes to YouTube's site (inside PhoneGap webview yet) and can't back to app.

I removed the inappbrowser plugin but Youtube still opening inside the app.

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

Any thoughts?

Theo B
  • 351
  • 1
  • 3
  • 12

1 Answers1

0

Another poor solution, but more elegant.

Idea is the same: prevent opening of links from iframe with aim to prevent navigation of app-webview.

It can be done over sandbox directive of iframe, like described in this answer: Prevent links in iframe to navigate/takeover cordova webview, especially in ios

Community
  • 1
  • 1