{ "id": "117005", "key": "TIMOB-14503", "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": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-08-31T20:26:00.000+0000", "created": "2013-07-09T19:28:39.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "cb-tooling" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T22:34:16.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": "13600", "name": "LiveView", "description": "Live preview of Titanium apps" } ], "description": "When Live-View enabling an app, the app should force the device to keep its screen on.\r\n\r\nThis is even more important because my experience is that the LiveView client loses connection when the device goes in lock-mode and doesn't reconnect again. I really have to force-quit the app and re-open to again establish connection.", "attachment": [], "flagged": false, "summary": "LiveView: A Live-View enabled app should force the screen to stay on", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "CLI 3.1.1\r\nSDK 3.1.1.GA\r\nStudio 3.1.1\r\niPad 1 / iOS 5.x", "closedSprints": [ { "id": 107, "state": "closed", "name": "2014 Sprint 10 Tooling", "startDate": "2014-05-12T16:00:00.000Z", "endDate": "2014-05-24T00:00:00.000Z", "completeDate": "2014-05-27T18:11:27.256Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "261374", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "What version of liveview are you testing on. By default the app will try and reconnect forever if the server is not online. I have tested on liveview 0.1.27 and I am able to lock the device and reconnect on unlock fine.", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-11T00:01:35.000+0000", "updated": "2013-07-11T00:01:35.000+0000" }, { "id": "261625", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Where do you find that version?\r\n\r\nFrom the About it says:\r\n\r\nLiveView Feature\t1.0.0.201307021617-3--59H5F8B9F9\tcom.appcelerator.titanium.liveview.feature.feature.group\tAppcelerator, Inc.\r\n\r\nI see there's an update. I'll try that one.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-07-12T13:27:37.000+0000", "updated": "2013-07-12T13:27:37.000+0000" }, { "id": "261626", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Still the same with the latest updates.\r\n\r\nTried to create a blank project to test if it's just my app, but on these new project(s) even builds fail when having LiveView enabled. The log:\r\n\r\n{code}\r\n[TRACE] : [DEBUG] : Copying /tmp/liveview.js => /Users/zandbergen/Documents/Appcelerator/TIMOB-14503-V/build/iphone/build/Debug-iphoneos/TIMOB-14503-V.app/app.js\r\n[TRACE] : timers.js:103\r\n[TRACE] : if (!process.listeners('uncaughtException').length) throw e;\r\n[TRACE] : ^\r\n[TRACE] : Error: ENOENT, no such file or directory '/tmp/liveview.js'\r\n{code}", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-07-12T13:53:49.000+0000", "updated": "2013-07-12T13:53:49.000+0000" }, { "id": "273391", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am not able to reproduce this. Apps run with liveview will automatically attempt to reconnect to the liveview server.", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-30T15:55:43.000+0000", "updated": "2013-09-30T15:55:43.000+0000" }, { "id": "273433", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~csullivan], good to hear this is fixed.\r\n\r\nHowever, I'd still recommend to keep the app alive using [idleTimerDisabled|http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.App-property-idleTimerDisabled] for a better debugging experience without having to disable auto locking on the device as a whole.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-09-30T19:46:12.000+0000", "updated": "2013-09-30T19:46:12.000+0000" }, { "id": "283594", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested functionality on:\nMac OSX 10.9 Mavericks\nAppcelerator Studio, build: 3.2.0.201312091648\nTitanium SDK, build: 3.2.0.v20131209192649\nCLI: 3.2.0-cr\nAlloy: 1.3.0-cr\nLiveView: 0.1.35\nAndroid Device: 4.4\n\n+Steps taken+\n1. Updated to latest build of Studio, CLI, SDK and LiveView\n2. Created default classic project\n3. Enabled LiveView and build to device\n4. Screen timed out after 15 seconds\n\nRe-Opening", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T19:29:08.000+0000", "updated": "2013-12-10T19:29:08.000+0000" }, { "id": "283660", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolved [MASTER] https://github.com/appcelerator/liveview/commit/a59299d15f151dbadb1e1d2896c7566a67b88014\nCurrent latest version of liveview is now 1.0.0", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T22:27:27.000+0000", "updated": "2013-12-10T22:27:27.000+0000" }, { "id": "303988", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "A connection error occurred after inactivity of app and screen timeout, reopening the issue.\r\n\r\nVerified the issue on :\r\nDevice : Google Nexus 4, Android Version: 4.1.1\r\nSDK: 3.3.0.v20140507163312\r\nCLI version : 3.3.0-dev\r\nOS : MAC OSX 10.9.2\r\nAlloy: 1.4.0-dev\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nLiveView: 1.0.4\r\nAppcelerator Studio, build: 3.3.0.201405011408\r\ntitanium-code-processor: 1.1.1\r\nXCode : 5.1.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-05-08T09:23:19.000+0000", "updated": "2014-05-08T09:23:19.000+0000" }, { "id": "306910", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "iOS supports the global app property idleTimerDisabled to disable the idle timer across the app. However, there isn't a similar property for Android - we need to set the keepScreenOn property across each window/view instance. Since liveview doesn't have access to each view/window of the app, it might not be straight forward to set this property and keep the device awake while the app is run with liveview.\r\n\r\nIn order to keep the device on, it requires a global property similar to iOS. When the app is run, Titanium framework should take care of delegating the property setting value to each window/view instance.", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-29T21:05:45.000+0000", "updated": "2014-05-29T21:05:45.000+0000" }, { "id": "394809", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~msamah] How hard would it be if the Android build baked a boolean property into the app when building with LiveView that would automatically set keepScreenOn to true on ALL windows?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-30T17:32:44.000+0000", "updated": "2016-08-30T17:32:44.000+0000" }, { "id": "394872", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "I think it would be a little involved. I feel that this approach would be overkill. (Just my opinion.)\r\n\r\nThere's 3 ways that, I believe can, achieve this:-\r\n1) Add that property in the views (the one you mentioned)\r\n2) In the Emulator OR Device, go to Developer options (you need to enable developer mode first) and set it to {{Stay awake}}\r\n3) Download a third-party app that keeps the screen on.\r\n\r\nFor development (Live-View), I think choice 2 is not a bad choice. Just a little bit manual but not difficult. What do you think? ", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-08-31T02:37:41.000+0000", "updated": "2016-08-31T02:42:35.000+0000" }, { "id": "394957", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I agree with option #2. I'll resolve this ticket. I've also created TIDOC-2570 to update the docs.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-31T20:26:00.000+0000", "updated": "2016-08-31T20:26:00.000+0000" }, { "id": "415456", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Won't Fix with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T22:34:16.000+0000", "updated": "2017-03-23T22:34:16.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }