hello i have this script which detects if user is view the page on webview or on browser of ios
i want to make same kind of script of android as well please advice
<script type="text/javascript">
var standalone = window.navigator.standalone,
userAgent = window.navigator.userAgent.toLowerCase(),
safari = /safari/.test(userAgent),
ios = /iphone|ipod|ipad/.test(userAgent);
if (ios) {
if (!standalone && safari) {
document.getElementById('where-am-i').textContent = 'browser';
} else if (standalone && !safari) {
document.getElementById('where-am-i').textContent = 'standalone';
} else if (!standalone && !safari) {
document.getElementById('where-am-i').textContent = 'uiwebview';
};
} else {
document.getElementById('where-am-i').textContent = 'not iOS';
};
</script>