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

does not identify iPadOS on iPad mini #105

Open
williamli opened this issue Jun 4, 2020 · 4 comments
Open

does not identify iPadOS on iPad mini #105

williamli opened this issue Jun 4, 2020 · 4 comments

Comments

@williamli
Copy link

on iPad mini,
md.os() === "iOS"
md.tablet() === "iPad"

@williamli
Copy link
Author

I know this issue is caused by Apple's iPad Pro now identifying itself as a "desktop-class browser", but I think it is still good if we can somehow identify it apart from the other desktop browsers.

@hgoebl
Copy link
Owner

hgoebl commented Jun 15, 2020

Currently, there's no way to detect it. You can extend the detection mechanism of mobile-detect and use other criteria (maybe Modernizr touch, ...).

I leave this issue open since nobody reads closed issues and this issue will be duplicated every week or so.

@ronanyeah
Copy link

I've just started using this:

const isNewIpad =
  window.navigator.userAgent.match(/Mac/) &&
  window.navigator.maxTouchPoints &&
  window.navigator.maxTouchPoints > 2;

I got it from here: https://stackoverflow.com/a/58017456/4224679

@MickL
Copy link

MickL commented Nov 11, 2021

Is there still no fix to this? :(

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

4 participants