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

   > Would having a new attribute be a better approach? Either that or a note 
in the docs to mention iPadOS 26 and future versions.
   
   From an API standpoint, yes it definitely would be a better approach to have 
a marketing version field.
   
   But from a maintainer perspective I'm not so sure if Apache should be 
responsible for providing the marketing name.
   
   If we assume Apple will release a version every year, then determining the 
name is as simple as `version + 7`... but that might be an unsafe assumption to 
make, even if that's been Apple's pattern for probably as long as I've been 
doing mobile development.
   
   For other platforms, localization might also be required, e.g. Android had 
the names: Nougat, oreo, etc, though I think Android have stopped using names 
and now has version numbers nowadays.
   
   So I think it's better for the plugin to provide the logical OS as it does, 
and defer to the application to determine the marketing name tailored to their 
specific needs/supported languages, etc.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to