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

Chrome on iPhone reports "safari" in userAgent service #120

Open
hassanasad opened this issue Nov 22, 2018 · 2 comments
Open

Chrome on iPhone reports "safari" in userAgent service #120

hassanasad opened this issue Nov 22, 2018 · 2 comments

Comments

@hassanasad
Copy link

hassanasad commented Nov 22, 2018

The UserAgentInfoRx service is reporting Chrome as "Safari" on iphone X

Can you please look into it?

@dertuerke
Copy link

dertuerke commented Jan 10, 2019

@hassanasad that is correct. A Chrome, Firefox or Opera are the same on iOS (Safari / WebKit).

The Chrome Engine is Chromium, but under iOS it is WebKit. Apple dont allow the Browser-Companys to use his own Engine on iOS-Devices.

https://blog.chromium.org/2017/01/open-sourcing-chrome-on-ios.html

@hassanasad
Copy link
Author

hassanasad commented Jan 14, 2019

@dertuerke okay but i see it "safari" even on MacOS on a macbook pro. That shouldn't happen right?

Had to implement some hacky method to fix that for myself.
https://stackoverflow.com/questions/16935955/javascript-to-detect-safari-and-chrome-on-mac

Basically this line:

isChrome = !!window.chrome;

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