Skip to content

iOS Safari 10 minor versions not recognised #177

@camslice

Description

@camslice

All minor & patch versions of iOS Safari 10 return 0 as the minor version. It is impossible to target minor versions.

For example, the UA string for iOS Safari version 10.1 is:

Mozilla/5.0 (iPhone; CPU iPhone OS 10_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B72 Safari/602.1

If you run lookup() on this string, it will return:

{ name: 'mobileSafari', major: 10, minor: 0, patch: 0 }

Obviously the Version in the UA string is 10.0, however on iOS the version of Safari always matches the version of the OS. If you update iOS, the Safari version is also updated. For some reason iOS Safari UI strings don't have the minor version updated in the Version section, so you need to consider the OS minor and patch versions.

Please see this RunKit for a demonstration with more examples: https://runkit.com/camslice/ios-safari-10-minor-versions-not-recognised

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