Replies: 2 comments
-
There is no native API for getting the marketing name, only the official model (i.e. iPhone13,1 for iPhone 12 mini) You can create a plugin that uses DeviceKit for getting the marketing name, but what it does is just to convert the official model to the marketing name by hardcoding values. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I wrote a solution here: #4353 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to add analytics to my ionic 5, Angular 10, Capacitor 2 app. I'm using the Device Plugin to get the device information. When I call Device.Model I'm only getting "iPhone". Is it possible to get the marketing name (ie iPhone 6s, Xr, 12 mini, etc) for iphones? I want to know which iPhone is most popular among my users, not just that they're on an iPhone, I can already tell that by platform.
Beta Was this translation helpful? Give feedback.
All reactions