BrowserHawk IQ now available! Click here for the full scoop!
Search:
How to detect when Chrome is running on mobile devices
Created: 7/3/2012    Updated: 7/3/2012
Q   How can I tell whether a user has Chrome on a mobile device, as opposed to a desktop machine?

A   BrowserHawk returns Chrome for the browser property for all users running Chrome regardless of whether its on a mobile device or a desktop machine.

To detect when a user has Chrome running on a mobile device, just test whether the browser property is Chrome and the MobileDevice property is True.

Furthermore, Chrome on iOS (such as running on the iPhone or iPad) is not as robust as the desktop or Android version of Chrome. Therefore you may find it desirable to detect when Chrome users are on iOS. To do this, test whether the browser property is Chrome and the OSName property is iOS.

    FAQ Home  |  Search FAQ  |  Show New Items  |  Ask a FAQ  |  Notify Me  |  Most Popular     
 
 
Copyright © 1994-2020 cyScape, Inc. All Rights Reserved. ()
ASP, ASP.NET, ColdFusion MX, CFMX, JSP, PHP