Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operation system IOS from slack events not parsed #643

Closed
Volna13 opened this issue Apr 13, 2023 · 0 comments
Closed

Operation system IOS from slack events not parsed #643

Volna13 opened this issue Apr 13, 2023 · 0 comments

Comments

@Volna13
Copy link

Volna13 commented Apr 13, 2023

We have events from slack that contain Useragent string.

Here is example

{
            "user_id": "UQLQRCAAAA",
            "username": "test",
            "date_first": 1681368084,
            "date_last": 1681368085,
            "count": 2,
            "ip": "111.111.111.41",
            "user_agent": "com.tinyspeck.chatlyio/23.04.10 (iPhone; iOS 16.4.1; Scale/3.00)",
            "isp": "",
            "country": "",
            "region": ""
}

Here is response from uaParser("com.tinyspeck.chatlyio/23.04.10 (iPhone; iOS 16.4.1; Scale/3.00)")

{
  "ua": "com.tinyspeck.chatlyio/23.04.10 (iPhone; iOS 16.4.1; Scale/3.00)",
  "browser": {},
  "engine": {},
  "os": {},
  "device": {
    "vendor": "Apple",
    "model": "iPhone",
    "type": "mobile"
  },
  "cpu": {}
}

Expected response

{
  "ua": "com.tinyspeck.chatlyio/23.04.10 (iPhone; iOS 16.4.1; Scale/3.00)",
  "browser": {},
  "engine": {},
  "os": {
    "name": "Ios",
    "version": "16.4.1"
   },
  "device": {
    "vendor": "Apple",
    "model": "iPhone",
    "type": "mobile"
  },
  "cpu": {}
}

Current "ua-parser-version" - "ua-parser-js": "^1.0.35"

faisalman added a commit that referenced this issue Sep 9, 2023

Verified

This commit was signed with the committer’s verified signature.
Josh-Cena Joshua Chen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant