{ "id": "79930", "key": "TIMOB-5190", "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": "2011-09-01T10:21:54.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "parity" ], "versions": [], "issuelinks": [ { "id": "12632", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "62734", "key": "TIMOB-2102", "fields": { "summary": "Android: Expose Keep Screen On", "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" } }, "priority": { "name": "Trivial", "id": "5" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-11-09T00:25:54.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "This is the iOS side of android ticket TIMOB-2102", "attachment": [], "flagged": false, "summary": "Android: Add \"Ti.App.idleTimerDisabled\" support", "creator": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "417480", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "There is http://docs.appcelerator.com/platform/latest/#!/api/Titanium.App-property-idleTimerDisabled for controlling the whole application. It might be useful to link this to {{keepScreenOn}} and enable/disable it when this window is opened/closed. ", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-04-17T15:59:56.000+0000", "updated": "2017-04-17T15:59:56.000+0000" }, { "id": "443353", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "Hello\r\nI have the same problem.\r\nOn an app that I developed that performs communication and recordings of data that can take several minutes we need to keep the app active and visible on android (for display of a time chart).", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-11-07T08:16:25.000+0000", "updated": "2018-11-07T08:16:25.000+0000" }, { "id": "443378", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~sandrolain], the Android equivalent is to set the window or view's \"keepScreenOn\" property {{true}} instead. Just note that you'll to set this property on every window that needs to keep the screen on. See...\r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.View-property-keepScreenOn\r\n\r\nSo, this is not a bug. This concept exists on both Android and iOS. The issue is that there is no parity between the 2 platforms because they're natively achieved in different ways. On iOS, this is set globally on the app. On Android, this is set per window or view.\r\n\r\nI hope this helps.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-07T20:35:45.000+0000", "updated": "2018-11-07T20:35:45.000+0000" }, { "id": "443415", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "Hello\r\nThanks, I try to use \"keepScreenOn\".\r\nIs the setting to be given for each Window or just set it on the main one?", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-11-08T12:24:28.000+0000", "updated": "2018-11-08T12:24:28.000+0000" }, { "id": "443452", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~sandrolain], you need to use \"keepScreenOn\" on every window on Android. That is, the window with \"keepScreenOn\" needs to be in the foreground in order for it to keep the screen on. If you display a child window on top of it and the child window's \"keepScreenOn\" is not set to {{true}}, then it won't keep the screen on. This is the native Android behavior.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-09T00:25:54.000+0000", "updated": "2018-11-09T00:25:54.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }