You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/10/20 13:38:38 UTC

[GitHub] [cordova-plugin-device] breautek commented on issue #147: iPhone/ipad simulator model number are not accurate

breautek commented on issue #147:
URL: https://github.com/apache/cordova-plugin-device/issues/147#issuecomment-947677185


   Looking at the code, I believe this is working as expected. These are apples model versions, which doesn't necessarily correspond with the actual phone/machine name.
   
   Apple doesn't provide an actual mapping afaik, but someone built a mapping [here](https://github.com/squarefrog/UIDeviceIdentifier/blob/master/UIDeviceIdentifier/UIDeviceHardware.m)
   
   However, I do agree that our documentation is not clear by this. If Apple provides an API to obtain the user-facing model version, I'd personally vote in favour of deprecating the current `model` attribute in favour of a new attribute that returns the actual model name as the docs suggests, and add a quirk note on the `model` attribute.
   
   Otherwise if Apple doesn't provide any such API then I'd personally be in favour for just simply adding a quirk note to the docs.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org