You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2018/04/14 21:42:00 UTC

[jira] [Commented] (CB-14028) device.model does not behave as documented on Android

    [ https://issues.apache.org/jira/browse/CB-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16438517#comment-16438517 ] 

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
(v7.6.3#76005)

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