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?