Due to a bug in webkit, "Version/X" is omitted from the UA string used by WKWebView (used in all non-Safari browsers on iOS, as well as all hybrid apps) in iOS 15.1 and potentially iOS 15.2 (when that comes out), which leads to missing version component of the browser object. This also causes calls like browser.satisfies({ safari: '>=12.0' }) to fail with undefined.
Here is an example of User Agent string from a production app:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148
Screenshot from /bowser-online/
![image](https://user-images.githubusercontent.com/2260539/141595073-2c302deb-64b2-44fb-afde-bb0e23d66074.png)
Due to a bug in webkit, "Version/X" is omitted from the UA string used by WKWebView (used in all non-Safari browsers on iOS, as well as all hybrid apps) in iOS 15.1 and potentially iOS 15.2 (when that comes out), which leads to missing
version
component of thebrowser
object. This also causes calls likebrowser.satisfies({ safari: '>=12.0' })
to fail withundefined
.Here is an example of User Agent string from a production app:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148
Screenshot from /bowser-online/
![image](https://user-images.githubusercontent.com/2260539/141595073-2c302deb-64b2-44fb-afde-bb0e23d66074.png)