Skip to content

Can Not Detect iPadOS 13+ #69

@donatj

Description

@donatj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions