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.