title: Ionic / Cordova with embedded video takes over web view
body: <p>In a simple Ionic app I have a plain web view with some embedded videos. These embedded videos are included with an <a href="http://oembed.com/" rel="nofollow">oEmbed</a> iframe. Video works fine, but almost every video provider has a link to watch the video on the provider's page. For example Youtube always has a button 'watch on Youtube'.</p>
  
  <p>When my users (accidentally) click that link, the whole Cordova web view is taken over by the linked URL. Instead of my app it shows the Youtube video. Then the user never gets to go back to my app, except by closing and opening the app.</p>
  
  <p>I've tried to:</p>
  
  <ul>
  <li>Prevent navigation by watching <code>$locationChangeStart</code>, that doesn't work as it doesn't fire for external URLs (like Youtube's).</li>
  <li>Prevent navigation by using <code>window.onbeforeupload</code>, but that doesn't suffice as it doesn't guarantee the user navigates away and it presents an ugly confirmation popup.</li>
  </ul>
  
  <p>Any other ideas on how to prevent navigation to external URLs from an Ionic/Cordova app would be highly appreciated.</p>