{ "id": "128592", "key": "AC-3289", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-04-04T05:58:34.000+0000", "created": "2014-04-02T06:29:13.000+0000", "labels": [ "android", "androidmanifest", "androidversion" ], "versions": [], "issuelinks": [ { "id": "36413", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "119803", "key": "TIMOB-15267", "fields": { "summary": "Android: Expose versionName and versionCode inside the Ti.App.Android", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:57:42.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14545", "name": "Documentation" }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "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.\r\n\r\n\r\nBelow Code I am trying:\r\n\r\n~~~\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : '#fff'\r\n});\r\n\r\nif(Ti.Platform.name === \"android\"){\r\n Ti.API.info('version code-->'+Ti.App.Android.appVersionCode);\r\n Ti.API.info('version name-->'+Ti.App.Android.appVersionName);\r\n}\r\nwin.open();\r\n~~~", "attachment": [], "flagged": false, "summary": "'Ti.App.Android.appVersionCode' & 'Ti.App.Android.appVersionName' property of android gives undefines when run on device", "creator": { "name": "sagar patel", "key": "sagar patel", "displayName": "sagar k patel", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sagar patel", "key": "sagar patel", "displayName": "sagar k patel", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Platform : Android,\r\nTi SDK : 3.2.2.GA,\r\nAndroid SDK : Above 4.0 ", "comment": { "comments": [ { "id": "299620", "author": { "name": "sagar patel", "key": "sagar patel", "displayName": "sagar k patel", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is there any other way to get the appVersionName and appVersionCode from tiApp.xml in android...?", "updateAuthor": { "name": "sagar patel", "key": "sagar patel", "displayName": "sagar k patel", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-02T17:19:25.000+0000", "updated": "2014-04-02T17:19:25.000+0000" }, { "id": "299622", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you for reporting this issue. This is a known enhancement and has been implemented for next major release (3.3.0). Please track TIMOB-15267 for this issue.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-02T17:49:47.000+0000", "updated": "2014-04-04T05:58:23.000+0000" }, { "id": "299848", "author": { "name": "sagar patel", "key": "sagar patel", "displayName": "sagar k patel", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you Ritu", "updateAuthor": { "name": "sagar patel", "key": "sagar patel", "displayName": "sagar k patel", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-04T06:43:00.000+0000", "updated": "2014-04-04T06:43:00.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }