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

[Request]: Show iOS user known device model names #2656

Open
vbuberen opened this issue Mar 5, 2024 · 1 comment
Open

[Request]: Show iOS user known device model names #2656

vbuberen opened this issue Mar 5, 2024 · 1 comment
Labels

Comments

@vbuberen
Copy link
Collaborator

vbuberen commented Mar 5, 2024

Plugin

device_info_plus

Use case

Currently on iOS plugin can't show user-known or commercial (not sure the correct word for it) device model. What I mean is that user of the plugin won't see something like iPhone 15 Pro Max or iPad Air 5th generation, etc.

There are 2 properties for device model name available:

  1. https://pub.dev/documentation/device_info_plus/latest/device_info_plus/IosDeviceInfo/model.html
  2. https://pub.dev/documentation/device_info_plus/latest/device_info_plus/IosUtsname/machine.html
    However, both of these params can't return model name like those that users got used to see.

There was a related question last year: #2225

Proposal

Considering adding https://github.com/devicekit/DeviceKit as a dependency in iOS part of the plugin and add a new property called something like commercialModel (or whichever suits better to indicate which type of device model name it is.

DeviceKit has this code that should help us with getting the required property: https://stackoverflow.com/a/26962452/7339798

After looking more at that repo I feel like we even could use more of features available in DeviceKit for plugin's functionality.

@kwent
Copy link

kwent commented Mar 15, 2024

Looks pretty straightforward and would make the world a better place for us humans :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants