{ "id": "173402", "key": "TIMOB-26947", "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": { "id": "6", "description": "", "name": "Hold" }, "resolutiondate": "2019-04-22T17:32:09.000+0000", "created": "2019-03-28T13:16:23.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "android", "engTriage", "foreground", "service" ], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" }, { "id": "20220", "name": "Release 7.3.1", "archived": false, "released": true, "releaseDate": "2018-08-30" }, { "id": "20429", "name": "Release 7.5.1", "archived": false, "released": true, "releaseDate": "2019-02-26" }, { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-04-22T17:45:05.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": "One of our technology customers is using a module we built for them that utilizes foreground-services (7.3.0+) and the location provider API to record geolocations and it seems to randomly fail:\r\n\r\n{quote}\r\nIn the foreground, the tracking on all devices under Android 7 and Android 8 delivered sufficiently accurate results. On a Galaxy S5 under Android 6 no geo data could be recorded. If the app is running in the background, the results are very different. On Huawai Devices, the Foreground service is often terminated - this happens very differently, sometimes after 16 minutes, sometimes even for the first time.\r\nafter 50 min. A Google Pixel 2 with Android 8 behaved similarly. The least problem with the Foreground service seems to be on Galaxy devices.\r\n{quote}\r\n\r\nWe hope this can be resolved by some fine tuning.", "attachment": [], "flagged": false, "summary": "Android: Foreground Services do not work reliably", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "447369", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-29T18:47:53.000+0000", "updated": "2019-03-29T18:47:53.000+0000" }, { "id": "447835", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The following community module attempts to keep the app alive by having the Android {{AlarmManager}} poll it at regular intervals (as I stated above in my last paragraph above). This should work, but spawning a wake-lock every interval via the {{AlarmManager}} is frowned upon... unless your app \"really\" needs it.\r\nhttps://github.com/AppWerft/Ti.Watchdog\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-04-22T17:45:05.000+0000", "updated": "2019-04-22T17:45:05.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }