{ "id": "159735", "key": "TIMOB-23268", "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": null, "resolutiondate": null, "created": "2016-04-20T18:11:19.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:22.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": [], "description": "All data stored in any kind of Ti.App.Properties are reset when I rebuild and redeploy my app.\r\n\r\nI tried building both using Appcelerator Studio and via CLI (ti build --platform windows --target wp-emulator --device-id 8-1-4) and it gives the same result.", "attachment": [], "flagged": false, "summary": "Windows: Ti.App.Properties are not persistent between builds ", "creator": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "subtasks": [], "reporter": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "environment": "SDK 5.4.0.v20160419234222", "comment": { "comments": [ { "id": "383476", "author": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "body": "Test code\r\n\r\n{code}\r\nTi.API.info(\"Starting\");\r\n\r\n\r\nfunction doClick(e) {\r\n Ti.API.info(\"Hi there\");\r\n alert($.label.text);\r\n}\r\n\r\nif (!Ti.App.Properties.hasProperty('testProp'))\r\n{\r\n\tTi.API.info('testProp not set');\r\n\tTi.App.Properties.setBool('testProp', true );\r\n}\r\n\r\n$.win.open();\r\n\r\n{code}\r\n\r\n\r\nThis produces the following debug log every time i build and redeply the app:\r\n\r\n-- Start application log -----------------------------------------------------\r\n[INFO] : Starting\r\n[INFO] : testProp not set\r\n[INFO] : Finished launching the application\r\n[INFO] : Waiting for app to connect to log relay", "updateAuthor": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "created": "2016-04-21T07:16:06.000+0000", "updated": "2016-04-21T07:16:06.000+0000" }, { "id": "383477", "author": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "body": "My environment from 'appc info'\r\n\r\nAppcelerator Command-Line Interface, version 5.2.2\r\nCopyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.\r\n\r\nOperating System\r\n Name = Microsoft Windows 10 Pro\r\n Version = 10.0.10586\r\n Architecture = 32bit\r\n # CPUs = 2\r\n Memory = 5.2GB\r\n\r\nNode.js\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.4\r\n Core Package = 5.2.2\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\n node-appc Version = 0.2.31\r\n\r\nTitanium SDKs\r\n 5.4.0.v20160419234222\r\n Version = 5.4.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.4.0.v20160419234222\r\n Platforms = android, mobileweb, windows\r\n git Hash = 743d79c\r\n git Timestamp = 04/19/16 23:42\r\n node-appc Version = 0.2.35\r\n 5.4.0.v20160410215408\r\n Version = 5.4.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.4.0.v20160410215408\r\n Platforms = android, mobileweb, windows\r\n git Hash = 97fe3e2\r\n git Timestamp = 04/10/16 21:54\r\n node-appc Version = 0.2.35\r\n 5.4.0.v20160330202802\r\n Version = 5.4.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.4.0.v20160330202802\r\n Platforms = android, mobileweb, windows\r\n git Hash = 15320e5\r\n git Timestamp = 03/30/16 20:28\r\n node-appc Version = 0.2.35\r\n 5.4.0.v20160301084038\r\n Version = 5.4.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.4.0.v20160301084038\r\n Platforms = android, mobileweb, windows\r\n git Hash = 071c19c\r\n git Timestamp = 03/01/16 08:40\r\n node-appc Version = 0.2.35\r\n 5.3.0.v20160418111755\r\n Version = 5.3.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.3.0.v20160418111755\r\n Platforms = android, mobileweb, windows\r\n git Hash = 7c38ca5\r\n git Timestamp = 04/18/16 11:17\r\n node-appc Version = 0.2.33\r\n 5.3.0.v20160407140024\r\n Version = 5.3.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.3.0.v20160407140024\r\n Platforms = android, mobileweb, windows\r\n git Hash = 9d961f3\r\n git Timestamp = 04/07/16 14:00\r\n node-appc Version = 0.2.33\r\n 5.2.0.GA\r\n Version = 5.2.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.2.0.GA\r\n Platforms = android, mobileweb, windows\r\n git Hash = 384775e\r\n git Timestamp = 02/20/16 08:04\r\n node-appc Version = 0.2.33\r\n\r\nIntel® Hardware Accelerated Execution Manager (HAXM)\r\n Not installed\r\n\r\nJava Development Kit\r\n Not found\r\n\r\nGenymotion\r\n Path = not found\r\n Genymotion Executable = not found\r\n Genymotion Player = not found\r\n Home = not found\r\n\r\nVirtualBox\r\n Executable = not found\r\n Version = unknown\r\n\r\nAndroid SDK\r\n Android Executable = not found\r\n ADB Executable = not found\r\n SDK Path = not found\r\n\r\nAndroid NDK\r\n NDK Path = not found\r\n NDK Version = not found\r\n\r\nAndroid Platforms\r\n None\r\n\r\nAndroid Add-Ons\r\n None\r\n\r\nAndroid Emulators\r\n None\r\n\r\nGenymotion Emulators\r\n None\r\n\r\nConnected Android Devices\r\n None\r\n\r\nMicrosoft (R) Visual Studio\r\n 14.0 (selected)\r\n Path = C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\\r\n CLR Version = v4.0.30319\r\n MSBuild Version = v14.0.24730.2\r\n Windows Phone SDKs = not installed\r\n\r\nMicrosoft (R) Windows Phone SDK\r\n 10.0\r\n Path = C:\\Program Files (x86)\\Windows Kits\\10\\\r\n 8.1 (selected)\r\n Path = C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\\r\n\r\nWindows PowerShell\r\n Enabled = yes\r\n\r\nWindows Phone Emulators\r\n8.1\r\n Emulator 8.1 WVGA 4 inch 512MB\r\n UDID 8-1-1\r\n Emulator 8.1 WVGA 4 inch\r\n UDID 8-1-2\r\n Emulator 8.1 WXGA 4.5 inch\r\n UDID 8-1-3\r\n Emulator 8.1 720P 4.7 inch\r\n UDID 8-1-4\r\n Emulator 8.1 1080P 5.5 inch\r\n UDID 8-1-5\r\n Emulator 8.1 1080P 6 inch\r\n UDID 8-1-6\r\n10.0\r\n\r\nWindows Phone Devices\r\n Device\r\n UDID 0\r\n\r\nJava Development Kit Issues\r\n × JDK (Java Development Kit) not installed.\r\n If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly\r\n set.\r\n The JDK is required for must be manually downloaded and installed from\r\n http://appcelerator.com/jdk.\r\n\r\nAndroid Issues\r\n × JDK (Java Development Kit) not found.\r\n If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly\r\n set.\r\n The JDK can be downloaded and installed from http://appcelerator.com/jdk.\r\n\r\n", "updateAuthor": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "created": "2016-04-21T07:18:08.000+0000", "updated": "2016-04-21T07:18:08.000+0000" }, { "id": "383492", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nI am able to get persistent date over building app for the following code.\r\n{code}\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nwin.open();\r\n\r\nvar beforeSetting=Ti.App.Properties.getString('name');\r\nTi.App.Properties.setString('name','Appcelerator');\r\nvar afterSetting=Ti.App.Properties.getString('name');\r\nTi.API.log(beforeSetting+\" \"+afterSetting);\r\n{code}\r\n*Steps:*\r\n1.\r\nWhen I first build and run the app I get the following console log.\r\n{code}\r\n[INFO] : null Appcelerator\r\n{code}\r\n2.\r\nWhen I build and run the app again I get the following console log. It is apparent that date is persistent over build.\r\n{code}\r\n[INFO] : Appcelerator Appcelerator\r\n{code}\r\n3.\r\nNow I add property in tiapp.xml as follows.\r\n{code}\r\nTitanium\r\n{code}\r\n4.\r\nWhen I first build and run the app I get the following console log.\r\n{code}\r\n[INFO] : Titanium Titanium\r\n{code}\r\n5.\r\nWhen I build and run the app again I get the following console log. It is seen that it is not possible to change property value when set in tiapp.xml.\r\n{code}\r\n[INFO] : Titanium Titanium\r\n{code}\r\n\r\n\r\n*Please provide us test code and step to reproduce so that we can understand what's happening in your case.*\r\n\r\nThanks\r\n\r\n\r\n*Environment*:\r\n\r\n*Device info:* Nexus7 (android 6.0.1)\r\n*Node.js Version:* 0.12.7\r\n*npm Version:* 2.11.3\r\n*Titanium SDKs:* 5.4.0\r\n*Java Development Kit Version:* 1.8.0_73\r\n*Titanium CLI Version:* 5.0.5\r\n*Appcelerator CLI Version:* 5.2.2\r\n*Appcelerator Studio:* 4.5.0\r\n", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-04-21T08:35:30.000+0000", "updated": "2016-04-21T08:38:08.000+0000" }, { "id": "383504", "author": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "body": "Hi,\r\n\r\nI have only seen this on Windows emulator (not tested on real hardware yet).\r\nMy colleague running the exact same code does not have this issue.\r\nWe are both running Windows via OSX (Parallells) but I am running Windows 10, he runs Windows 8.1.", "updateAuthor": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "created": "2016-04-21T09:18:45.000+0000", "updated": "2016-04-21T09:18:45.000+0000" }, { "id": "383557", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, \r\n\r\nIt's a well-known facts that Appcelerator has issue with Windows 10. Make sure you followed the guide here http://docs.appcelerator.com/platform/latest/#!/guide/Installing_the_Windows_Phone_SDK and followed the compatibility and download section on Windows OS. \"Windows 10 requires Developer mode to be enabled to build ws-local applications. This can be set in Settings > Update & Security > For developers.\"\r\n\r\nRegards,\r\nSharif.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-04-21T17:49:14.000+0000", "updated": "2016-04-21T17:49:14.000+0000" }, { "id": "383566", "author": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "body": "I followed everything on the guide as far as I can see and the Developer Mode is enabled.\r\nAre the problems with Windows 10 documented somewhere?\r\n\r\n", "updateAuthor": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "created": "2016-04-21T19:05:54.000+0000", "updated": "2016-04-21T19:05:54.000+0000" }, { "id": "384072", "author": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "body": "I have the same behaviour on Windows 8.1.\r\nIt looks like the app is first deleted as it disappears momentarily from the app list, before being installed again. Maybe this could be the reason?", "updateAuthor": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "created": "2016-04-27T13:32:52.000+0000", "updated": "2016-04-27T13:32:52.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }