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 Not Detect iPadOS 13+ #69

Closed
donatj opened this issue Dec 8, 2020 · 1 comment
Closed

Can Not Detect iPadOS 13+ #69

donatj opened this issue Dec 8, 2020 · 1 comment

Comments

@donatj
Copy link
Owner

donatj commented Dec 8, 2020

So the people at Apple are bad bad people and made it much more difficult to detect iPad OS

https://developer.apple.com/forums/thread/119186

iPad OS Safari

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15

MacOS Safari

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36

There are three major sniffable differences as best I can tell - ordered by seemingly most to least important.

  • The Mac OS X version includes 3 places in macOS but only two places in iOS
  • iPad OS does not claim to be chrome
  • The version of AppleWebKit in macOS only has two places rather than 3

While I don't normally support meddling with this kind of UA shenanigans, iPadOS seems important enough to bother.

@donatj
Copy link
Owner Author

donatj commented Dec 8, 2020

I stand corrected, the _ sniffable differences_ were removed in iPad OS 14… I was running 13 in the simulator.

iPadOS:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.1 Safari/605.1.15

Safari on Big Sur:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.1 Safari/605.1.15

They're binary the same.

@donatj donatj closed this as completed Dec 8, 2020
@donatj donatj changed the title Detect iPad OS Can Not Detect iPadOS 13+ Dec 8, 2020
@donatj donatj pinned this issue Dec 8, 2020
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

1 participant