Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser: Mobile Safari vs WebKit #403

Closed
karfau opened this issue Dec 5, 2019 · 1 comment
Closed

Browser: Mobile Safari vs WebKit #403

karfau opened this issue Dec 5, 2019 · 1 comment

Comments

@karfau
Copy link

karfau commented Dec 5, 2019

For the following UA:
Mozilla/5.0 (iPad; CPU OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148

The lib reports WebKit as a browser and engine name, while the version of both is set to 605.1.15.

From the list of browsers in the README and the tests in browser-test.json I would have expected a name of Mobile Safari and a version of 13 (so it can e.g. be related to a minimum iOs/Safari version of 11)

Is there a way to detect these as "Mobile Safari"?

Issues potentially related: #387 , #300

@faisalman
Copy link
Owner

Unless there is Safari/[version] token, we can't be certain whether it's Mobile Safari or just another in-app browser since they share similar user-agent string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants