前言:今天遇到一个ua,解析出来设备是 MacOS, 但是其实是 IpadOS
使用的解析网页是 user-agents.net/parser; 解析结果如下
{
"parent": "Safari 13.0",
"browser_bits": "32",
"platform": "macOS",
"platform_version": "10.15",
"platform_description": "macOS",
"platform_bits": "32",
"platform_maker": "Apple Inc",
"win64": "false",
"comment": "Safari 13.0",
"browser": "Safari",
"browser_type": "Browser",
"browser_maker": "Apple Inc",
"frames": "true",
"iframes": "true",
"tables": "true",
"cookies": "true",
"javascript": "true",
"cssversion": "3",
"device_name": "Macintosh",
"device_type": "Desktop",
"device_pointing_method": "mouse",
"device_code_name": "Macintosh",
"renderingengine_name": "WebKit",
"renderingengine_description": "For Google Chrome, iOS (including both mobile Safari, WebViews within third-party apps, and web clips), Safari, Arora, Midori, OmniWeb, Shiira, iCab since version 4, Web, SRWare Iron, Rekonq, and in Maxthon 3.",
"renderingengine_maker": "Apple Inc",
"browser_modus": "",
"version": "13.0",
"majorver": "13",
"minorver": "",
"alpha": "false",
"beta": "false",
"win16": "false",
"win32": "false",
"backgroundsounds": "false",
"vbscript": "false",
"javaapplets": "true",
"activexcontrols": "false",
"ismobiledevice": "false",
"istablet": "false",
"issyndicationreader": "false",
"crawler": "false",
"isfake": "false",
"isanonymized": "false",
"ismodified": "false",
"aolversion": "",
"device_maker": "Apple Inc",
"device_brand_name": "Apple",
"renderingengine_version": ""
}
但是问题是这是一个 Ipad 的ua;经查找资源发现:IpadOS 的ua在13.5后去掉了 Ipad 字段。