{ "id": "151509", "key": "TIMOB-19585", "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": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-09-29T15:07:30.000+0000", "created": "2015-09-25T17:53:56.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2015-10-14T21:30:59.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": "10206", "name": "iOS", "description": "iOS Platform" }, { "id": "10207", "name": "Tooling" } ], "description": "When running a Titanium app in the simulator I noticed the following in the console:\r\n\r\n{code}\r\nSep 25 12:39:01 yojimbo itworks[99959]: You've implemented -[ application:performFetchWithCompletionHandler:], but you still need to add \"fetch\" to the list of your supported UIBackgroundModes in your Info.plist.\r\nSep 25 12:39:01 yojimbo itworks[99959]: You've implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add \"remote-notification\" to the list of your supported UIBackgroundModes in your Info.plist.\r\n{code}\r\n\r\nIt appears that we need to add \"fetch\" and \"remote-notification\" to the list of UIBackgroundModes.", "attachment": [], "flagged": false, "summary": "iOS: Missing UIBackgroundModes \"fetch\" and \"remote-notification\"", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "closedSprints": [ { "id": 502, "state": "closed", "name": "2015 Sprint 20 Tooling", "startDate": "2015-09-28T16:01:48.429Z", "endDate": "2015-10-10T01:01:00.000Z", "completeDate": "2015-10-12T21:13:39.920Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "365018", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master PR: https://github.com/appcelerator/titanium_mobile/pull/7233\r\n5_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/7234", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-09-25T17:56:05.000+0000", "updated": "2015-09-25T17:56:05.000+0000" }, { "id": "365054", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Thanks for the PRs. but we cannot automatically add those properties into the plist because not everyone requires fetch and remote-notification. Those warnings appear because we have the delegates built, but they do nothing unless those properties are set. A better solution is to suppress these warnings. Notice there are the\r\n{code}\r\n#ifdef USE_TI_FETCH\r\n#ifdef USE_TI_SILENTPUSH\r\n{code}\r\nSo it should be if \"fetch\" and \"remote-notification\" properties are set in tiapp.xml, these flags should be activated.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-28T02:02:34.000+0000", "updated": "2015-09-28T02:02:34.000+0000" }, { "id": "365064", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~cng] I'm cool with suppressing these warnings. If you would, create a new ticket to suppress these warnings, link it to this ticket, close the PRs, resolve this ticket invalid. Thanks!", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-09-28T06:06:49.000+0000", "updated": "2015-09-28T06:06:49.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }