{ "id": "88662", "key": "TIMOB-8259", "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": null, "resolutiondate": null, "created": "2012-03-23T16:05:36.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": null, "updated": "2018-03-06T18:57:55.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": "h2. Problem description\r\niOS: UIBackgroundModes key is not added to info.plist even after specifying backgroundModes in tiapp.xml. This does not prevent the app being suspended and Garbage Collector ends up killing the GPS \r\n\r\nh2. Steps to reproduce\r\nIn order to use the Geolocation when the app is backgrounded, following lines are added to tiapp.xml:\r\n\r\n{code:lang:xml|title=tiapp.xml}\r\n\r\n location\r\n\r\n\r\n gps\r\n location-services\r\n\r\n{code}\r\n\r\nHowever after building, key UIBackgroundModes is not added to the info.plist\r\nIn particular, info.plist should include those lines:\r\n\r\n{code:title=info.plist}\r\nUIBackgroundModes\r\n\r\n location\r\n\r\n{code}\r\n\r\nWithout adding those lines, the app is being suspended after 10 minutes and the garbage collector kills the GPS.\r\n\r\nh2. Additional info\r\nTicket reference: http://support-admin.appcelerator.com/display/APP-954912/conversation/read_all\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: backgroundModes specified in tiapp.xml does not prevent the app being suspended, killing the GPS", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 1.8.2 and latest 2.0 CI\r\niOS SDK 5", "comment": { "comments": [], "maxResults": 1, "total": 1, "startAt": 0 } } }