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

CLI: Titanium.App.getVersion() returns the bundle version on device, not the tiapp.xml version

    Details

      Description

      Problem description

      Titanium.App.getVersion() returns the bundle version on device, not the version defined in TiAPP.xml

      Not reproducible using 2.1.4 GA

      Steps to reproduce

      Set the version number in TiAPP.xml (for example 1.25)

      The Titanium.App.getVersion() works fine on simulator. (returns 1.25)
      But same code on device returns the bundle version (returns for example 1.25.565432543)

      var win = Ti.UI.createWindow({
      	title : 'test',
      	backgroundColor : 'white'
      });
       
      var debugVersion = Ti.UI.createLabel({
      	text : 'v ' + Ti.App.getVersion(),
      	width : 200,
      	height : 50,
      	left : 20,
      	top : 20
      });
       
      win.add(debugVersion);
       
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              fcasali Federico Casali
              Reviewer:
              Sabil Rahim
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code