-
Notifications
You must be signed in to change notification settings - Fork 102
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 detect iOS on newer versions #163
Comments
Same issue here |
@roblourens @nicoknoll Any chance you can both provide a bit more of an example of the kinds of things you are tailoring in your apps/sites once you know it is an iPad? Just trying to work out how a combination of UA sniffing and feature detection might be combined to help solve these use cases. My thinking is that rather than updating |
Not one of the people you asked, but I just stumbled across this so below is one of my use cases:
To handle the behaviour in (2) we can't rely on looking for Safari because both Desktop and iOS Safari report as the same version, but have different behaviour with their |
I just remembered another use case of mine: providing device specific instructions to users. With the example above the user is prompted to give permission for the site to access their camera and microphone; if they decline this access, we need to give them instructions how to change the setting later, which is quite a different set of steps for iOS vs Mac. |
The useragent alone is no longer sufficient for detecting iOS. Seems like the general recommended technique is to check maxTouchPoints.
https://stackoverflow.com/a/58065241/129895
I don't have an iOS device to test, so I don't want to submit a PR right now, I just have a report that this isn't working for a user's iPad.
The text was updated successfully, but these errors were encountered: