Skip to content

The os.name context is reported incorrectly on macOS #174

@seanrucker

Description

@seanrucker

The MacOSVendorSystem uses device.operatingSystemVersionString for the systemName property. I believe this is incorrect as it is resulting in values such as "Version 12.5.1 (Build 21G83)" being reported as the name of the operating system. On iOS it uses device.systemName which results in "iOS" being reported as the name of the operating system, which is what I would expect.

To Reproduce
Steps to reproduce the behavior:

  1. Implement the SDK in a macOS app.
  2. Run the app then background it to flush the events.
  3. Check the Segment debugger and notice the os context values look like the following.
"os": {
    "name": "Version 12.5.1 (Build 21G83)",
    "version": "12.5.1"
}

Expected behavior
I expect the value for os.name on macOS to be "macOS".

Screenshots
CleanShot 2022-11-08 at 10 56 35@2x

Platform (please complete the following information):

  • Library Version in use: 1.3.2
  • Platform being tested: macOS
  • Integrations in use: None

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions