I'm building my website and I want to know whether the user is using Android's browser or an app with a webview.
is it possible ??
Essentially, a user agent is a way for a browser to say “Hi, I'm Mozilla Firefox on Windows” or “Hi, I'm Safari on an iPhone” to a web server. The web server can use this information to serve different web pages to different web browsers and different operating systems.
A user agent is a computer program representing a person, for example, a browser in a Web context. Besides a browser, a user agent could be a bot scraping webpages, a download manager, or another app accessing the Web.
Latest Chrome User Agents. Chrome (Standard) Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36. Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36.
As per Chrome dev docs: "If you’re attempting to differentiate between the WebView and Chrome for Android, you should look for the presence of the Version/X.X string in the WebView user-agent string."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With