-
Notifications
You must be signed in to change notification settings - Fork 71
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
iPad Air 2, ios 13.2 not recognized as tablet on safari #87
Comments
On iOS 13 window.navigator.userAgent in Safari on iOS 13 is same as on MacOS. Something like this:
the reason is because "Request Desktop Website" parameter is now enabled by default, so instead of Indeed, while option change in Settings may be a good solution for the user, any developer can't rely on that. It is as weird as to ask the user to not to use dark mode cause your app doesn't support it instead of opt-out of it using plist. Proposal is to add additional validation for
real macs have no multi-touch support, this solution is ideal to detect iOS 13 devices which are the only multi-touch "MacIntel" devices in existence |
This would be handled with srfrnk/ua-device-detector#17 |
@srfrnk Do any changes need to be made to ng-device-detector to get this working? We are using the latest release 5.1.4 and iPad Safari is reporting as a desktop device. Thanks |
Hi @andychangwalker |
…ar. Fixes issue with iPad reporting as Desktop srfrnk#87
Hi @srfrnk Sorry for the delay coming back. After checking ua-device-detector version it still wasn't working. I believe it was due to the MaxTouchPoints and Platform not being supplied by ng-device-detector so I modified the ng-device-detector code. I've created a pullrequest with my change for you to check. Thanks |
Thanks @andychangwalker, |
I just upgrade IOS version to ios 13.2 and it is not recognized as tablet on safari.
Thanks.
The text was updated successfully, but these errors were encountered: