[
https://issues.apache.org/jira/browse/CB-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jcesarmobile resolved CB-14028.
-------------------------------
Resolution: Fixed
I've updated the docs
> device.model does not behave as documented on Android
> -----------------------------------------------------
>
> Key: CB-14028
> URL: https://issues.apache.org/jira/browse/CB-14028
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-plugin-device
> Environment: Device: Samsung Galaxy S5
> Model: SM-G900F
> Platform: Android
> Reporter: Mathijs
> Priority: Major
>
> The
> [documentation|https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-device/#android-quirks]
> states:
> {quote}Gets the [product
> name|http://developer.android.com/reference/android/os/Build.html#PRODUCT]
> instead of the [model
> name|http://developer.android.com/reference/android/os/Build.html#MODEL],
> which is often the production code name. For example, the Nexus One returns
> {{Passion}}, and Motorola Droid returns {{voles}}.
> {quote}
> Hence, for the Samsung Galaxy S5, we would expect the production code name
> `klte`. Instead, we're getting `SM-G900F`, which is inconsistent with the
> documented example.
> However, in the quirk above suggests that it is 'often' the production code
> name. Does this mean that the result can be expected to be inconsistent, that
> is, sometimes the product name and sometimes the model name?
> Note that the [official device
> list|http://storage.googleapis.com/play_public/supported_devices.csv] from
> Google specifies a 'Marketing Name', a 'Device' and a 'Model - the latter two
> being `klte` and `SM-G900F`, respectively, in the provided example.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]