{ "id": "80236", "key": "AC-3052", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2011-10-20T09:54:01.000+0000", "created": "2011-09-12T14:13:20.000+0000", "labels": [ "BackgroundService", "defect", "ios", "registerBackgroundService" ], "versions": [], "issuelinks": [], "assignee": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:48: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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The Titanium.App.iOS.BackgroundService dies after the iOS device has been locked.\r\n\r\nI have an app, where I use the Titanium.App.iOS.registerBackgroundService to create a BackgroundService to update the appBadge (Titanium.UI.iPhone.appBadge). This works just fine, untill I lock the device (or it goes to sleep) - then when I unlock the screen, it looks like the BackgroundService thread is dead (I can see that by the appBadge not changeing).\r\n\r\n---\r\n\r\nA side note is also, that normally apps with badges/alerts/sounds etc. are listed under Settings -> Notifications. But I can't get my Titanium app to apear in this list :( Apps using the Locations Service are fine registered under Settings -> Location Services.", "attachment": [], "flagged": false, "summary": "Titanium.App.iOS.BackgroundService dies after the iOS device has been locked", "creator": { "name": "rabu81", "key": "rabu81", "displayName": "Rasmus Burkal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rabu81", "key": "rabu81", "displayName": "Rasmus Burkal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Developer 1.2.2\r\nTitanium SDK 1.6.2\r\niOS SDK 4.3", "comment": { "comments": [ { "id": "165897", "author": { "name": "rabu81", "key": "rabu81", "displayName": "Rasmus Burkal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Okay, just got some more info.\r\n\r\nI'm using the setInterval in my BackgroundService, and have discovered that the thread is dyeing after exactly 10 minutes, and then it does not recover until you open the app again (but that is just because then the backgroundService is just registered again)", "updateAuthor": { "name": "rabu81", "key": "rabu81", "displayName": "Rasmus Burkal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-13T14:34:17.000+0000", "updated": "2011-09-13T14:34:17.000+0000" }, { "id": "169830", "author": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Rasmus,\r\n\r\nCould you please update the ticket with a complete code sample that I can use to test this bug?\r\n\r\nAlso could you please test using the latest 1.7.3 SDK?\r\n\r\nBest regards,\r\nMatt", "updateAuthor": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-20T09:53:46.000+0000", "updated": "2011-10-20T09:53:46.000+0000" }, { "id": "177254", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Closing resolved tickets due to inactivity.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-27T07:33:08.000+0000", "updated": "2011-12-27T07:33:08.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }