{ "id": "125758", "key": "TIMOB-16373", "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": [], "resolution": null, "resolutiondate": null, "created": "2014-02-03T09:57:13.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:46.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Since iOS7 it is possible to disable the background app refresh in Settings. In most cases it means that the app is not allowed to refresh its data in the background, but it also means that GPS apps (like a fitness tracker) cannot use GPS in the background.\r\n\r\nBackground App Refresh has been implemented in Appcelerator Titanium, but this property is not. The following code contains the check:\r\n\r\n{code}\r\nif ([[UIApplication sharedApplication] backgroundRefreshStatus] == UIBackgroundRefreshStatusAvailable) {\r\n\r\n NSLog(@\"Background updates are available for the app.\");\r\n}else if([[UIApplication sharedApplication] backgroundRefreshStatus] == UIBackgroundRefreshStatusDenied)\r\n{\r\n NSLog(@\"The user explicitly disabled background behavior for this app or for the whole system.\");\r\n}else if([[UIApplication sharedApplication] backgroundRefreshStatus] == UIBackgroundRefreshStatusRestricted)\r\n{\r\n NSLog(@\"Background updates are unavailable and the user cannot enable them again. For example, this status can occur when parental controls are in effect for the current user.\");\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS7 : Implement missing backgroundRefreshStatus property", "creator": { "name": "timanrebel", "key": "timanrebel", "displayName": "Timan Rebel", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "timanrebel", "key": "timanrebel", "displayName": "Timan Rebel", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "291151", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this improvement request to engineering for further evaluation and prioritization.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-04T18:07:21.000+0000", "updated": "2014-02-04T18:07:21.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }