I've got a web-site and a native iOS app, so when someone browses the website version from a iOS mobile phone I add a banner to download the app. Inside the mobile app, some features open an internal webview that shows the website inside the app. I would like to avoid the display of the banner inside the web-view of the native app.
I'm currently recognizing the iPhone like this:
$meta['isIOS'] = stripos($_SERVER['HTTP_USER_AGENT'],"iPhone");
Besides adding something to all requests from the native app, is there a way to identify the browsing is done through a web-view of any/my app?