4 ms·
User agent detection is never a good idea, perhaps just checking if the api is available and if a device can be obtained (see samples on the WebKit website) is
by isodev 3y ago
User agent detection is never a good idea, perhaps just checking if the api is available and if a device can be obtained (see samples on the WebKit website) is enough (and reliable).
As with all STP releases, this is the time to report issues before the feature makes it into the next version of Safari.
- sccxy 3y agoProblem is that iOS has bugs, even if feature is available and detected but it does not work in PWA or other webkit browsers… It just silently fails. UA detection is needed for detecting bug version. For example Wake lock API has been broken from iOS 16.4 that is like over 9 months. Or zindex rendering was flickering between iOS 15.7 to 16.4 Some renderings work in Desktop safari but it is different in mobile safari with same version. It sucks but it is reality of iOS developer experience.