{ "id": "151577", "key": "TIMOB-19615", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-10-14T15:50:36.000+0000", "created": "2015-09-29T15:10:21.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-10-15T11:16:53.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" } ], "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 but only if these features are used. Perhaps we need to use the following to control this:\r\n\r\n{code}\r\n#ifdef USE_TI_FETCH\r\n\r\n#ifdef USE_TI_SILENTPUSH\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Suppress missing UIBackgroundModes \"fetch\" and \"remote-notification\" warnings", "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": 494, "state": "closed", "name": "2015 Sprint 20 SDK", "startDate": "2015-09-26T00:29:19.845Z", "endDate": "2015-10-10T00:29:00.000Z", "completeDate": "2015-10-12T05:33:30.964Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "365511", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR HERE: https://github.com/appcelerator/titanium_mobile/pull/7257\r\n\r\nh4. Steps to test for removal of warnings\r\n1. create a new project\r\n2. build the project\r\n\r\nh4. Expected result\r\n- you will no longer see the warnings\r\n- if you look in project/build/iphone/classes/defines.h, you will not see TI_SILENTPUSH or TI_FETCH\r\n\r\nh4. Steps to test if these 2 properties still work when declared in tiapp.xml\r\n1. in the same project, include this in tiapp.xml\r\n{code}\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\tUIBackgroundModes\r\n\t\t\t\t\r\n\t\t\t\t\tremote-notification\r\n fetch\r\n\t\t\t\t\r\n....\r\n{code}\r\n2. build the project again\r\n\r\nh4. Expected result\r\n- there is still no warnings\r\n- if you look in project/build/iphone/classes/defines.h, you will see TI_SILENTPUSH and TI_FETCH\r\n\r\nRun above tests with simulator as well as device.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-10-01T04:16:49.000+0000", "updated": "2015-10-01T04:16:49.000+0000" }, { "id": "366613", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cng] following the test instructions mentioned by you, the warnings are suppressed however if we add the two properties in tiapp.xml and build the project on iOS simulator then we do not see these in defines.h. These properties are present in defines.h file if we build to a device.\r\nHence, reopening the ticket.\r\nVerified on:\r\nMac OS: 10.10.5\r\nTi SDK: 5.1.0.v20151009204425\r\nXcode: 7.0.1\r\nAppc CLI NPM: 4.2.0\r\nAppc CLI Core: 5.1.0-38\r\nAppc Studio: 4.3.1.201509302304\r\nDevice: iPhone Simulator (v9.0), iPhone 6S (v9.0.2)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-13T07:50:19.000+0000", "updated": "2015-10-13T07:50:19.000+0000" }, { "id": "366614", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Master PR: https://github.com/appcelerator/titanium_mobile/pull/7293\r\nBackport: https://github.com/appcelerator/titanium_mobile/pull/7294", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-10-13T08:54:56.000+0000", "updated": "2015-10-13T08:54:56.000+0000" }, { "id": "366924", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified based on test instructions in the comments.\r\nVerified on: \r\nMac OS: 10.10.5 \r\nTi SDK: 5.1.0.v20151014101225 \r\nXcode: 7.0.1 \r\nAppc CLI NPM: 4.2.1-1 \r\nAppc CLI Core: 5.1.0-38 \r\nAppc Studio: 4.4.0.201510092420 \r\nDevice: iPhone Simulator (v9.0), iPhone 6S (v9.0.2)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-15T11:16:53.000+0000", "updated": "2015-10-15T11:16:53.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }