{ "id": "108930", "key": "TIMOB-12509", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-09-07T01:22:12.000+0000", "created": "2013-01-31T04:59:22.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [ { "id": "25378", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "108694", "key": "TIMOB-12464", "fields": { "summary": "BlackBerry: Window.keepScreenOn", "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": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "56776", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "167291", "key": "TIMOB-24629", "fields": { "summary": "Android: Add wakeLock to NotificationManager", "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": "Critical", "id": "1" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": null, "updated": "2018-09-10T18:33:08.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "Developers may sometimes require the ability to prevent a device\r\nfrom powering off its display and/or CPU during certain periods\r\nof time while their application performs some task.\r\n\r\nMost of our native platforms provide an API for these use cases.\r\n\r\nAndroid for example has WakeLock which provides various levels which\r\naffect the device's power management. You may also set a flag at the View\r\nwhich will keep the screen on (we already expose this in Titanium).\r\n\r\nBlackBerry provides an \"idle mode\" flag on the main window which has\r\ntwo modes: Normal and KeepAwake.\r\n\r\nThe goal of this ticket is to come up with some common API\r\nthat we may expose to our developers which is suitable for the\r\nvarious platform which are capable of this feature.", "attachment": [], "flagged": false, "summary": "TiAPI: Power management - Keep Screen On", "creator": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "441399", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Wake lock support was added to local notifications. See: [TIMOB-24629]\r\n\r\nSo, if you want device screen to stay on while the app is backgrounded, a local notification with wake lock enabled is needed. This is more in-line with how Google wants it to work in this particular case, because like foreground services, they want apps to notify the end-user that the app is doing something in the background that requires the screen to stay on.\r\n\r\nClosing.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-09-07T01:21:40.000+0000", "updated": "2018-09-07T01:21:40.000+0000" }, { "id": "441439", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "I use Ti.App.idleTimerDisabled([true | false]) to keep iOS screens on. https://docs.appcelerator.com/platform/latest/#!/api/Titanium.App-property-idleTimerDisabled", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2018-09-10T13:10:47.000+0000", "updated": "2018-09-10T13:10:47.000+0000" }, { "id": "441451", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We also have a {{Window.keepScreenOn}} and {{View.keepScreenOn}} for Android...\r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Window-property-keepScreenOn\r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.View-property-keepScreenOn\r\n\r\nBut these properties, including iOS' {{idleTimerDisabled}}, are only in effect while the app is in the foreground.\r\n\r\nThe whole point of this ticket is to keep the screen on while the app is in the background. That's the only relevant reason to use a wake-lock. Although, in my opinion, you should avoid it on Android when possible since the wake-lock permission is a dirty word. I've seen apps get bad reviews on Google Play simply for stating that it uses the WAKE_LOCK permission, because a lot of end-users blame poor battery life on it.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-09-10T18:33:08.000+0000", "updated": "2018-09-10T18:33:08.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }