Skip to content

Add Support for iPad on iOS 13 #109

Closed
@gk1041

Description

For iPad on iOS 13 the term iPad no longer appears in the user-agent. The user agent for iPad on iOS 13 is this:

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

The solution to check for iPad on iOS is:

let isIOS = /iPad|iPhone|iPod/.test(navigator.platform) ||
(navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1);

Reference to solution here: https://stackoverflow.com/a/58064481/3787150

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