MAIDR Documentation - v3.75.0
    Preparing search index...

    Function describeOperatingSystem

    • Names the operating system behind a user agent string.

      Only what the user agent can actually support is reported: Windows 10 and 11 are indistinguishable there, and Safari/Chrome freeze the macOS version at 10.15.7, so neither is given a version it cannot back up. For the same reason iPadOS Safari reads as macOS — its default user agent claims Macintosh; Intel Mac OS X and carries no iPad token at all.

      Parameters

      • userAgent: string

        The navigator.userAgent value to read.

      Returns string

      A label such as macOS or Android 14, or Unknown.