2

I'm currently using the below Javascript to check if my website is loaded within an iOS webview:

/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent)

Although, how can I check if my website is loaded within an Android Webview?

Fizzix
  • 23,679
  • 38
  • 110
  • 176
  • 1
    Did you see [Detect inside Android Browser or WebView](http://stackoverflow.com/questions/6783185/detect-inside-android-browser-or-webview) – Tushar Mar 05 '16 at 06:52
  • @Tushar - Looks like that's exactly what I'm after. Searched high and low, can't believe I didn't come across that. Thanks for the point in the right direction. – Fizzix Mar 05 '16 at 06:59

0 Answers0