Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3052] Titanium.App.iOS.BackgroundService dies after the iOS device has been locked

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2011-10-20T09:54:01.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
LabelsBackgroundService, defect, ios, registerBackgroundService
ReporterRasmus Burkal
AssigneeMatthew Apperson
Created2011-09-12T14:13:20.000+0000
Updated2016-03-08T07:48:05.000+0000

Description

The Titanium.App.iOS.BackgroundService dies after the iOS device has been locked. I 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). --- A 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.

Comments

  1. Rasmus Burkal 2011-09-13

    Okay, just got some more info. I'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)
  2. Matthew Apperson 2011-10-20

    Rasmus, Could you please update the ticket with a complete code sample that I can use to test this bug? Also could you please test using the latest 1.7.3 SDK? Best regards, Matt
  3. Paul Dowsett 2011-12-27

    Closing resolved tickets due to inactivity.

JSON Source