2

We are currently using the below condition determine whether the web request came from iOS or not

window.navigator.userAgent.match(/iPhone|iPad|iPod/i)

We have certain scenarios where we need to do special handling if the request comes from WebView with in the native app, is there a way to differentiate whether the request is from native app webview or mobile safari. The above condition returns true for both.

anoop4real
  • 7,598
  • 4
  • 53
  • 56
  • Possible duplicate of [Detect if page is loaded inside WKWebView in JavaScript](https://stackoverflow.com/questions/28795476/detect-if-page-is-loaded-inside-wkwebview-in-javascript) – nathan Aug 30 '17 at 05:40
  • Thanks will check that out and get back. – anoop4real Aug 30 '17 at 05:44

0 Answers0