Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26516

Android: Ti.Platform "id" and "version" properties return null if analytics disabled as of 7.5.0.RC

    Details

    • Story Points:
      2
    • Sprint:
      2018 Sprint 23

      Description

      Summary:
      Properties Ti.Platform.id and Ti.Platform.version return null if analytics have been disabled in the "tiapp.xml" file. They return the correct values if analytics is enabled.

      This bug was introduced as of 7.5.0.RC.

      Steps to reproduce:

      1. Set up a Classic app with the "app.js" code shown below.
      2. In the "tiapp.xml" file, disabled analytics as shown below.
      3. Build and run on an Android device.
      4. In the log, notice that "id" and "version" return null. (This is the bug.)

      tiapp.xml

      <ti:app xmlns:ti="http://ti.appcelerator.org">
          <analytics>false</analytics>
      </ti:app>
      

      app.js

      Ti.API.info("@@@ Ti.Platform.id: " + Ti.Platform.id);
      Ti.API.info("@@@ Ti.Platform.version: " + Ti.Platform.version);
      

      Note:
      I suspect APIs Ti.Geolocation.forwardGeocoder() and Ti.Geolocation.reverseGeocoder() might also fail if analytics is disabled.

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              jfalcone Joe Falcone
              Reviewer:
              Christopher Williams
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6668
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code