{ "id": "109850", "key": "TIMOB-13481", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [], "resolution": null, "resolutiondate": null, "created": "2013-02-18T22:35:45.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:28.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Related to this issue, but titanium specific:\r\n\r\nhttp://stackoverflow.com/questions/510216/can-you-make-the-settings-in-settings-bundle-default-even-if-you-dont-open-the\r\n\r\nCommunity thread: \r\n\r\nhttp://developer.appcelerator.com/question/147214/tiappproperties-arent-read-pproperly-on-actual-device#comment-159480\r\n\r\n\r\nBasically, I have a string property with a default value \r\n \r\n Type\r\n PSTextFieldSpecifier\r\n Title\r\n Name\r\n Key\r\n name_test\r\n DefaultValue\r\n Foobar\r\n \r\n\r\n in the root.plist. When the application gets built + installed the first time, the Settings App does have all the properties. However, the titanium app cannot access the default values.\r\n \r\nIf, in app.js, I call:\r\n\r\nTi.API.info(\"AppSetting Name = \" + Ti.App.Properties.getString('name_test'));\r\n\r\nthe result is \"null\";\r\n\r\nIf I close the app, change the value in the settings app to \"Now it works\", and then reload the application, the output of the same call is:\r\n\r\n\"Now it works.\"\r\n\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: Default values in the Root.plist file are not available on first install. ", "creator": { "name": "gmurphy44", "key": "gmurphy44", "displayName": "Glenn Murphy", "active": true, "timeZone": "Pacific/Auckland" }, "subtasks": [], "reporter": { "name": "gmurphy44", "key": "gmurphy44", "displayName": "Glenn Murphy", "active": true, "timeZone": "Pacific/Auckland" }, "environment": "IOS Device + Simulator", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }