Is there a way to distinguish a real mobile device from a device emulated by Google Chrome? Please note that Google Chrome can emulate Useragent, touchscreen, screen resolution and accelerometer. I need to know some features which cannot be emulated but can be detected by javascript.
Chrome allows users to emulate Chrome on a mobile device (e.g. a “Nexus 7” tablet, or an “iPhone 5”) from the desktop version of Chrome, by enabling the Mobile Emulation feature in Chrome DevTools.
Emulated devices, also known as device emulators, are mobile operating systems running on non-mobile devices. Most developers use device emulators on their laptops to test their products on different devices or operating systems without the need to go out and purchase and setup all different devices.
Emulating various devices informs app developers of any necessary changes to the functionality of their app, as well as improving UX and highlight other areas for improvement. For example, an app developer could use an emulated device to test their product on iOS, and then on Android.
It is possible to check for navigator.plugins.length. Mobile browsers have no plugins, so navigator.plugins.length is equal to 0; Desktop browsers ordinary have plugins, so we can distinguish browsers by length of plugins array.
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