Recently, several developers have begun to create applications that no more than point to state content (free, public property) through UIWebViews. This is usually not a problem, except that applications support all ads, and some are even paid. In fact, they earn on state content.
My question is this: how can I get a site to open a new Safari window, rather than displaying it in UIWebview (which is wrapped in app branding)? I can detect UIWebview using the following, but I can do nothing but just hide the content. I would prefer it to provide a link to our content, which then opens in Safari.
This is how I discover UIWebview:
var is_uiwebview = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent);
source share