{ "id": "173414", "key": "TIMOB-26953", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": [ { "id": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-10-03T15:24:09.000+0000", "created": "2019-03-29T22:16:19.000+0000", "epic": { "id": 170944, "key": "TIMOB-25712", "name": "Support Android Next", "summary": "Android: Support Android Q", "color": { "key": "color_5" }, "done": false }, "priority": { "name": "None", "id": "6" }, "labels": [ "android", "foreground", "location", "service" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-10-03T15:27:47.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Summary:*\r\nAndroid Q requires foreground services to set a new \"foregroundServiceType\" setting to \"location\" in order to collect location data while the app is backgrounded.\r\nhttps://developer.android.com/preview/privacy/device-location#continuation-user-initiated-action\r\n\r\n*Recommended Solution:*\r\nWe don't have to set \"android:foregroundServiceType\" in the \"AndroidManifest.xml\". We can set it dynamically via the new Android Q [Service.startForeground()|https://developer.android.com/reference/android/app/Service.html#startForeground(int,%20android.app.Notification,%20int)] method overload which accepts a {{foregroundServiceType}} as a 3rd argument. We should modify Titanium's [Service.foregroundNotify()|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Android.Service-method-foregroundNotify] to support this new setting as well.\r\n", "attachment": [], "flagged": false, "summary": "Android: Modify Service.foregroundNotify() to support \"foregroundServiceType\" for Android Q", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1165, "state": "closed", "name": "2019 Sprint 20", "startDate": "2019-09-23T15:38:43.949Z", "endDate": "2019-10-06T15:38:00.000Z", "completeDate": "2019-10-07T18:33:11.953Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "451139", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "8_3_X: https://github.com/appcelerator/titanium_mobile/pull/11197", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-05T19:34:41.000+0000", "updated": "2019-09-05T19:34:41.000+0000" }, { "id": "451624", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, waiting on Jenkins build.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-25T14:27:02.000+0000", "updated": "2019-09-25T14:27:02.000+0000" }, { "id": "451783", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-10-02T20:31:35.000+0000", "updated": "2019-10-02T20:31:35.000+0000" }, { "id": "451816", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "Verified working correctly on 8.3.0. \r\n\r\nTicket closed.", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2019-10-03T15:24:00.000+0000", "updated": "2019-10-03T15:24:00.000+0000" }, { "id": "451818", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "Build: 8.3.0.v20191002165629", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2019-10-03T15:27:47.000+0000", "updated": "2019-10-03T15:27:47.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }