{ "id": "163526", "key": "TIMOB-23960", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-09-28T16:51:16.000+0000", "created": "2016-09-28T16:47:18.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-05-16T22:22:18.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": "Thanks to @rlepinski on Github:\r\n{quote}\r\nIf you enable background notifications in iOS it crashes the application when a push is received. It looks like TiApp never implements the method that its forwarding on, so I am guessing its relying on a module to swizzle that method into place.\r\n{quote}\r\n\r\nThe PR will check if the delegate is actually implemented and only calls it then.\r\n\r\nCommunity PR: https://github.com/appcelerator/titanium_mobile/pull/8437\r\n\r\nTesting steps:\r\n1. Create a new app\r\n2. Follow [this steps|http://docs.appcelerator.com/platform/latest/#!/guide/iOS_Background_Services-section-37539664_iOSBackgroundServices-SilentPush] to implement silent-push (aka background-notifications)\r\n3. Trigger a notification from the server / arrow dashboard\r\n\r\nExpected behavior: The app does not crash", "attachment": [], "flagged": false, "summary": "iOS: Application crashes from background-notifications when delegate method is not implemented", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 722, "state": "closed", "name": "2016 Sprint 20 SDK", "startDate": "2016-09-28T16:50:17.299Z", "endDate": "2016-10-12T16:50:00.000Z", "completeDate": "2016-10-10T06:17:01.016Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "419844", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\nMacOS 10.12 (16A323)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.1.0.v20170510094004\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2-master.7\r\nAlloy 1.9.11\r\nXcode 8.3.2 (8E2002)\r\n\r\nAble to send and receive silent push notifications without error or crash. Tested using the silent push code in the Appcelerator documentation as well as modified code from other push notification tests to include silent push support.\r\n\r\n", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-16T22:22:18.000+0000", "updated": "2017-05-16T22:22:18.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }