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

Receive information about the user system #21

Closed
hendrikebbers opened this issue Mar 21, 2021 · 4 comments
Closed

Receive information about the user system #21

hendrikebbers opened this issue Mar 21, 2021 · 4 comments
Assignees
Labels
feature New feature or request

Comments

@hendrikebbers
Copy link
Member

hendrikebbers commented Mar 21, 2021

To provide a automatic download selection we need information about the user system

Which OS is the user using? (Win32, Win64, MacOS, Linux, ...)



[Added 18/04/21 by @hiddenmind3]:

  • Retrieve the user agent header from the browser
  • Get the Operating System from the useragent (win, mac, linux, solaris, ...)
  • Get the Architecture from the useragent (x32, x64, amd, ...)
    • If architecture cant be found use the default of the operating system (eg. Windows-x64)
  • Return the values in a “UserSystem” class
@tresf
Copy link

tresf commented Mar 21, 2021

For future-proof: https://github.com/WICG/ua-client-hints

Note, Safari isn't the best about reporting architecture, see also: WICG/ua-client-hints#105 (comment)

@miketaylr
Copy link

miketaylr commented Mar 23, 2021

Hi there -- quick question: I added the Sec-CH-UA-Bitness header to the UA Client Hints spec, which reports on the "bitness" of the platform / OS, but have been thinking it may be useful to know the bitness of the app (browser) in addition to the OS.

For example, if you're running 32 bit Firefox or Chrome, on a 64 bit Windows. Is that useful for your use-case?

@aahlenst
Copy link

@miketaylr We're primarily interested in the OS and architecture of the host because we want to offer the right download. So when do I have a 32 bit browser on a 64 bit OS? I guess if the browser isn't ready for 64 bits. So I have a hard time to imagine when that info could be useful for our use case. But happy to be convinced otherwise.

@miketaylr
Copy link

Thanks -- that's helpful. No need to force a use case. :)

@timhalter timhalter added the feature New feature or request label Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants