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

Can't detect "android browser" (non-chrome) #46

Open
sctv-hamanaka opened this issue May 28, 2018 · 2 comments
Open

Can't detect "android browser" (non-chrome) #46

sctv-hamanaka opened this issue May 28, 2018 · 2 comments

Comments

@sctv-hamanaka
Copy link

User Agent String:

Mozilla/5.0 (Linux; U; Android 4.2.2; ja-jp; SBM302SH Build/S0020) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30

Result:

{
"name": "Safari",
"vendor": "Apple",
"version": "4.0",
"category": "smartphone",
"os": "Android",
"os_version": "4.2.2"
}

The browser name must be like "Android Browser" rather than "Safari".

@tagomoris
Copy link
Member

The old "Android Browser" looks almost outdated, and it requires ugly hack to detect it... +"Linux; U;", +"Android" +"Safari" -"Chrome"? Oops.
I want to let it be not supported.

@sctv-hamanaka
Copy link
Author

FYI, I looked into recent statistics of our service and about 1.5% of our traffic was using that kind of browsers (name: Safari and os: Android).

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

No branches or pull requests

2 participants