{ "id": "77877", "key": "TIMOB-4696", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "12079", "description": "", "name": "Sprint 2011-39", "archived": true, "released": true, "releaseDate": "2011-10-03" }, { "id": "12470", "description": "", "name": "Release 1.7.4", "archived": true, "released": true, "releaseDate": "2011-10-31" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-10-10T08:46:46.000+0000", "created": "2011-07-15T12:44:33.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_app_properties", "qe-testadded" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [ { "id": "14645", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "82410", "key": "TIMOB-6038", "fields": { "summary": "Android: Ti.App.Properties - Cannot retrieve property value set in tiapp.xml ", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:46:28.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "We cannot retrieve the property value set in tiapp.xml using Ti.App.properties API even though it is documented in the WIKI.\r\nhttp://wiki.appcelerator.org/display/guides/tiapp.xml+and+timodule.xml+Reference#tiapp.xmlandtimodule.xmlReference-Applicationproperties\r\n\r\nStep1: Copy the following code in app.js\r\n{code:title='app.js'}\r\nTitanium.UI.setBackgroundColor('white');\r\n\r\nvar win = Titanium.UI.createWindow();\r\nalert(Ti.App.Properties.getString(\"appstate\"));\r\nwin.open();\r\n{code}\r\nStep2: Add the following line to tiapp.xml\r\nDEV\r\nStep3: Run the app, and you can see the alert message is null.\r\n\r\n", "attachment": [ { "id": "23079", "filename": "4696.zip", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-27T17:28:19.000+0000", "size": 1901147, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Cannot retrieve property value set in tiapp.xml using Ti.App.Properties API", "creator": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti.SDK 1.7.0 and iOS 4.3", "comment": { "comments": [ { "id": "159704", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "h3. Associated HD ticket\r\nhttp://appc.me/c/APP-274595", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-07-15T14:56:43.000+0000", "updated": "2011-07-15T14:56:43.000+0000" }, { "id": "159786", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h3.Associated Helpdesk ticket.\r\nhttp://appc.me/c/APP-131697", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-18T10:01:17.000+0000", "updated": "2011-09-26T10:20:08.000+0000" }, { "id": "167159", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "pull pending pull #518", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-27T17:26:36.000+0000", "updated": "2011-10-03T10:50:16.000+0000" }, { "id": "168848", "author": { "name": "mjreagle", "key": "mjreagle", "displayName": "Mike Robinson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "iOS Fix seems to prevent retrieving existing Ti.App.Properties not found within tiapp.xml.\r\n\r\nRemoving both calls to new loadUserDefaults function in TiApp.mm seems to fix that, but that leaves this ticket still an issue.\r\n\r\nSee:\r\nhttp://developer.appcelerator.com/question/126711/ios-fix-to-timob-4696-causing-to-not-find-existing-tiapp-properties", "updateAuthor": { "name": "mjreagle", "key": "mjreagle", "displayName": "Mike Robinson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-11T11:01:08.000+0000", "updated": "2011-10-11T11:01:08.000+0000" }, { "id": "168866", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Mike , thanks for catching that so quickly, i have already made a new pull to fix this issue pull #548 and timob-5494.", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-11T12:24:14.000+0000", "updated": "2011-10-11T12:24:56.000+0000" }, { "id": "169952", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.7.4.v20111020142213, Titanium Studio, build: 1.0.6.201110171921 on \r\nSimulator 4.1\r\niPad 5.0\r\nProperties are retrieved and returned values are correct with rebuild\r\nLeaving open to confirm with 1.8", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-20T15:26:20.000+0000", "updated": "2011-10-20T15:26:20.000+0000" }, { "id": "170094", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.7.4.v201110021114614 and Titanium Studio, build: 1.0.6.201110202348 on\r\niPhone 4s (5.0)\r\niPhone 3g (3.1.2)\r\nProperties are retrieved and returned values are correct with rebuild\r\nLeaving open to confirm with 1.8", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-21T13:16:14.000+0000", "updated": "2011-10-21T13:16:14.000+0000" }, { "id": "172607", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.0.1.v20111114102656 on\r\niPad 2 (4.3.5)\r\niPod Touch (4.0.2)\r\niPhone 4s (5.0)\r\nXoom 3.2.1 (Android Fails - Bug 6189)", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-14T15:02:32.000+0000", "updated": "2011-11-14T15:02:32.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }