Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-14028

device.model does not behave as documented on Android

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-plugin-device
    • Labels:
      None
    • Environment:

      Device: Samsung Galaxy S5
      Model: SM-G900F
      Platform: Android

      Description

      The documentation states:

      Gets the product name instead of the model name, which is often the production code name. For example, the Nexus One returns Passion, and Motorola Droid returns voles.

      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 from Google specifies a 'Marketing Name', a 'Device' and a 'Model - the latter two being `klte` and `SM-G900F`, respectively, in the provided example.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              drbob Mathijs
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: