I used to use:
(window.navigator.userAgent.indexOf('Android') > -1 && (/Chrome\/[.0-9]*/).test(window.navigator.userAgent)) || navigator.userAgent.match('CriOS');
to detect Chrome on iOS devices, but it appears the user agent on Chrome for the 6+ is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.53.11 (KHTML, like Gecko) Version/5.1.3 Safari/534.53.10 (000578)
I've also used device.js in the past to add the class "mobile" to the HTML tag. Seems neither method works now. Any idea how I can detect Chrome on iPhone 6+?
For some reason my user agent was incorrect. I believe it may have been because I previously invoked the Firebug Lite bookmarklet. The correct user agent is:
Mozilla/5.0 (iPhone; CPU iPhone OS 8_1_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) CriOS/40.0.2214.73 Mobile/12B466 Safari/600.1.4 (000582)
Now this detector works:
(window.navigator.userAgent.indexOf('Android') > -1 && (/Chrome\/[.0-9]*/).test(window.navigator.userAgent)) || navigator.userAgent.match('CriOS');