mileusna / useragent

Go/Golang parser for user agent strings
MIT License
404 stars 65 forks source link

Support for Flutter IOS User Agents #32

Open AbhisekhNag opened 11 months ago

AbhisekhNag commented 11 months ago

Hi, When flutter is used as the frontend for mobile apps, the User agent patterns in IOS sometimes come in this pattern: CFNetwork/1404.0.5 Darwin/22.3.0 (iPhone iOS/16.3.1) This is not being supported properly, the response is:

{
        "VersionNo": {
                "Major": 1404,
                "Minor": 0,
                "Patch": 5
        },
        "OSVersionNo": {
                "Major": 0,
                "Minor": 0,
                "Patch": 0
        },
        "URL": "",
        "String": "CFNetwork/1404.0.5 Darwin/22.3.0 (iPhone iOS/16.3.1)",
        "Name": "CFNetwork",
        "Version": "1404.0.5",
        "OS": "",
        "OSVersion": "",
        "Device": "",
        "Mobile": false,
        "Tablet": false,
        "Desktop": false,
        "Bot": false
}