Randy Minder
Randy Minder

Reputation: 48402

Detecting Actual Browser Type on an iPhone / iPad

When a Chrome user hits my site, on an iPhone or iPad, the browser type, as reported via JavaScript or Request.Browser using MVC, always reports Safari. I think this is because Chrome, or any other browser running on an Apple platform, must be built on top of Safari technology, as per Apple requirements. Is there any way to detect what the actual browser really is?

Upvotes: 0

Views: 181

Answers (1)

Josh
Josh

Reputation: 1744

You can indeed tell if it is Chrome on iOS by looking at the agent string for 'CriOS.' It will be there instead of 'Version.' See this link for details.

Upvotes: 1

Related Questions