You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On iOS 13 window.navigator.userAgent in Safari on iOS 13 is same as on MacOS. Something like this:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15
the reason is because "Request Desktop Website" parameter is now enabled by default, so instead of os-ios we get os-mac on iOS 13
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 os-mac:
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
os-ios
we getos-mac
on iOS 13Indeed, 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
os-mac
: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
The text was updated successfully, but these errors were encountered: