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

device.model does not behave as documented on Android

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-plugin-device
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: