jcesarmobile commented on CB-14028:

I think it's a documentation issue, it has always returned that since the first 
commit. There is a function to return the product name, but it's not used

> 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

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

Reply via email to