{ "id": "81416", "key": "TIMOB-5494", "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": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "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": "2012-01-23T15:51:06.000+0000", "created": "2011-10-11T11:58:59.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_app_properties", "qe-testadded" ], "versions": [ { "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" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44:01.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": "Caused due to the feature implemented by timob-4696 \r\n\r\nRun the following code in simulator. Comment out the setstring line and re run again ... \r\n//app.js\r\nvar win = Titanium.UI.createWindow({ \r\n title:'TEST',\r\n backgroundColor:'#fff'\r\n});\r\n//Comment out the setString for the second run of the app,\r\n//hasProperty will return false for that execution\r\nTitanium.App.Properties.setString('my_prop', 'dadfcool'); // <--- comment this line after the first run.\r\nTi.API.info('has property: ' + Ti.App.Properties.hasProperty('my_prop'));\r\nvar a = Titanium.UI.createAlertDialog({\r\n\ttitle:'Test Result',\r\n\tmessage:'has property: ' + Ti.App.Properties.hasProperty('my_prop'),\r\n});\r\na.show(); \r\n//For debugging, list all properties & values\r\nvar props = Titanium.App.Properties.listProperties();\r\nfor (var c = 0; c < props.length; c++) {\r\n var value = Titanium.App.Properties.getString(props[c]);\r\n Titanium.API.info(props[c] + \" = \" + value);\r\n}\r\n \r\nwin.open();\r\n\r\n\r\nResult : returns value false\r\n\r\nExpected :return value true\r\n", "attachment": [], "flagged": false, "summary": "iOS: userDefaults not remembering the properties that were set", "creator": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "168867", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "comment pull pending #548", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-11T12:25:29.000+0000", "updated": "2011-10-11T12:25:29.000+0000" }, { "id": "170940", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Should have been labeled merge-1.7.4\r\n", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-31T13:21:11.000+0000", "updated": "2011-10-31T13:21:11.000+0000" }, { "id": "170943", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "pull pending #608", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-31T13:33:41.000+0000", "updated": "2011-10-31T13:33:41.000+0000" }, { "id": "171174", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "regressed against 1.7.5 Nov 1 2011 11:46 rbd9a4c74, 10.6.8, and lion. xcode 4.2 and 4.0, ios5 and ios 4.3. Keeping open till its regressed against master.", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-02T09:05:18.000+0000", "updated": "2011-11-02T09:05:18.000+0000" }, { "id": "172606", "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", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-14T14:55:49.000+0000", "updated": "2011-11-14T14:55:49.000+0000" }, { "id": "180237", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening issue\r\n\r\nTested this issue with Ti Studio build 1.0.8.201201210622\r\nTi Mob SDK 1.8.1.v20120123130147\r\nOSX Lion 10.7.2\r\niPhone 3GS OS 4.3\r\n\r\nUsing the steps provided the second run returns false and not true like expected", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-23T14:56:33.000+0000", "updated": "2012-01-23T14:56:33.000+0000" }, { "id": "180249", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with updated test steps and issue does not occur with same environment as I listed when I reopened this issue.", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-23T15:45:06.000+0000", "updated": "2012-01-23T15:45:06.000+0000" }, { "id": "180250", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening this bug to fix \"Fix Version\" field.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-23T15:49:57.000+0000", "updated": "2012-01-23T15:49:57.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }