Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-3289

'Ti.App.Android.appVersionCode' & 'Ti.App.Android.appVersionName' property of android gives undefines when run on device

    Details

      Description

      I am trying to fetch the appVersionCode & appVersionName from tiApp.xml gives me 'undefined'. I am trying to fetch this data using 3.2.2.GA sdk.

      Below Code I am trying:

      ~~~
      var win = Ti.UI.createWindow(

      { backgroundColor : '#fff' }

      );

      if(Ti.Platform.name === "android")

      { Ti.API.info('version code-->'+Ti.App.Android.appVersionCode); Ti.API.info('version name-->'+Ti.App.Android.appVersionName); }

      win.open();
      ~~~

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ragrawal Ritu Agrawal
                Reporter:
                sagar patel sagar k patel
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration