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

Fix device model identifier for Mac #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

manucheri
Copy link
Contributor

@manucheri manucheri commented Apr 29, 2024

uname returns x86_64 (or Apple Silicon equivalent) as the device name for Macs. Get the device name in another way for Mac devices. If it fails (it shouldn't AFAIK but still), fallback to the default way (which I guess can be represented as "unknown Mac" or similar).

`uname` returns x86_64 (or Apple Silicon equivalent) for Macs.
Get the device name in another way for Mac devices. If it fails,
fallback to the default way (can be represented as "unknown Mac" or
similar).
@manucheri
Copy link
Contributor Author

@goenning With this fix I think all supported platforms should now report a device model corresponding to the actual device the code is running on.

FWIW the method used is similar to how other popular libraries (Firebase) gather the identifier.

Fine to merge?

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

Successfully merging this pull request may close these issues.

None yet

1 participant