{ "id": "169802", "key": "TIMOB-25299", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-09-21T01:30:58.000+0000", "created": "2017-09-16T05:34:54.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity" ], "versions": [ { "id": "19870", "description": "", "name": "Release 6.1.2", "archived": false, "released": true, "releaseDate": "2017-08-03" }, { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-06T17:36:59.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h6.Reproduce.\r\n1. Create a new Alloy project.\r\n2. Add following lines into Alloy.js file\r\n{code}\r\nvar defaultValue = Ti.App.Properties.getString('SOME_PROPERTY', null);\r\nconsole.warn('DefaultValue 1: ' + defaultValue);\r\n\r\nTi.App.Properties.setString('SOME_PROPERTY', 'This value should be preserved after intalls');\r\ndefaultValue = Ti.App.Properties.getString('SOME_PROPERTY', null);\r\nconsole.warn('DefaultValue 2: ' + defaultValue);\r\n{code}\r\n3. Run the app in a windows device. Check the console log\r\n4. Re-install the app through CLI or studio. Check the console log again\r\n\r\nh6.Problem\r\nYou will see the value saved in Ti.App.Properties is not persistence after re-install the same app.\r\n\r\nh6.Note\r\n1. If do not re-install, just simply close and run again, it works well.\r\n2. Tested on iOS platform, it works well. The value is persistence even after re-install.", "attachment": [], "flagged": false, "summary": "Windows: Ti.App.Properties is not persistence if re-install the app", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "SDK 6.2.0 and SDK 6.1.2", "closedSprints": [ { "id": 948, "state": "closed", "name": "2017 Sprint 19 SDK", "startDate": "2017-09-10T21:24:51.562Z", "endDate": "2017-09-24T21:24:00.000Z", "completeDate": "2017-09-25T17:49:27.460Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "428204", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Based on internal discussions on Teams, the values in {{Ti.App.Properties}} doesn't get persisted when app is uninstalled on other platforms too. I would close this ticket as Invalid. I believe original issue that customer is having is something related to TIMOB-25017, where application gets uninstalled (thus app properties got erased) when you deploy app from Ti CLI .", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-09-21T01:30:58.000+0000", "updated": "2017-09-21T01:30:58.000+0000" }, { "id": "439897", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid. If incorrect, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:36:59.000+0000", "updated": "2018-08-06T17:36:59.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }