{ "id": "80235", "key": "TIMOB-5278", "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": "12077", "description": "", "name": "Sprint 2011-37", "archived": true, "released": true, "releaseDate": "2011-09-19" }, { "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-06T14:21:54.000+0000", "created": "2011-09-12T13:42:41.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_app_properties", "qe-testadded" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:46:26.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": "When a user changes Ti.App.Properties outside of the application (e.g. the iOS 'Settings' application), the new value is not immediately available on application resume; instead, the previous value is given. After waiting a little while (anything below 2 seconds seems iffy), this value is updated appropriately. Reproduction follows...\r\n\r\nSteps to reproduce:\r\n# Open test application, then close\r\n# Open iOS Settings application, change value of \"Foo\" setting\r\n# Close Settings application and quickly re-open test application\r\n# After 2 seconds, values will be alerted. Item A will hold old value, while B, which was checked 2 seconds later, holds new value.\r\n\r\n{code:title=app.js}\r\nTi.App.addEventListener('resumed', function() {\r\n\tvar output = \"A: \" + Titanium.App.Properties.getString(\"foo\") + \"\\n\\n\";\r\n\t\r\n\tsetTimeout(function() {\r\n\t\toutput += \"B: \" + Titanium.App.Properties.getString(\"foo\") + \"\\n\\n\";\r\n\t\t\r\n\t\talert(output);\r\n\t}, 2000);\r\n});\r\n{code}\r\n\r\n{code:title=Root.plist}\r\n\r\n\r\n\r\n\r\n\tStringsTable\r\n\tRoot\r\n\tPreferenceSpecifiers\r\n\t\r\n\t\t\r\n\t\t\tType\r\n\t\t\tPSToggleSwitchSpecifier\r\n\t\t\tTitle\r\n\t\t\tFoo\r\n\t\t\tKey\r\n\t\t\tfoo\r\n\t\t\tDefaultValue\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: App properties don't immediately register a changed value", "creator": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "environment": "iOS 4.3\r\nTiMob SDK 1.8.0.v20110906", "comment": { "comments": [ { "id": "176964", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed in SDK: 1.8.0.1.v20111220190134. Set value now showing up on app resume with iPad 2 (5.0.1) and iPhone 4s (5.0.1).", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-21T16:43:23.000+0000", "updated": "2011-12-21T16:43:23.000+0000" }, { "id": "178401", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to edit labels", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-06T14:21:37.000+0000", "updated": "2012-01-06T14:21:37.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }