sukhendar
sukhendar

Reputation: 63

How to detect browsers other than Safari for iPhone web app?

I'm able to detect chrome browser other than safari with

user_agent = request.env['HTTP_USER_AGENT'].downcase

user_agent.include?("crios")

But, how to detect other browsers like Dolphin

Dolphin browser user_agent also showing same as Safari. Is there any other way to detect browsers.

Upvotes: 0

Views: 160

Answers (1)

Will Jenkins
Will Jenkins

Reputation: 9787

Why do you want to do this? It's usually not a good idea.

Feature detection is usually a much better way to go. See this answer for a good explanation.

Upvotes: 1

Related Questions