This question is locked. New answers and comments are not allowed.
In my app I use JWPlayer to show videos and ads. If a user clicks on an ad in a video, my entire webview (and app) redirects to the ad URL which makes my app useless until it's restarted.
When I want to manually direct a user to a webpage, I currently use:
function nav() { if (kendo.support.mobileOS.android) { navigator.app.loadUrl("http://www.google.com/", { openExternal:true } ); } else if (kendo.support.mobileOS.ios) { window.open("http://www.google.com/", '_system'); } else { alert("something went wrong"); }}But I have no control over the links in the player.
Is there a way to adapt the code above or is there different method that would allow me to open all ad links in an external browser?
Thanks.