Does a webserver know whether a page request is coming from a webbrowser versus a UIWebView within an app in IOS.
For example, was any webserver able to distinguish between web pages being requested from web browsers versus the Instapaper app on iOS?
Useragent will make the difference. Use the below detection code
var isWebView = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent);
if(isWebView) {
alert("Page serving through UIWebView");
} else {
alert("Page serving through Browser");
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With