{ "id": "172346", "key": "TIMOB-26444", "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": "20275", "name": "Release 7.4.1", "archived": false, "released": true, "releaseDate": "2018-10-18" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-10-08T17:35:15.000+0000", "created": "2018-09-25T12:36:28.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-10-19T18:38:22.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Calling Titanium.App.iOS.UserNotificationCenter.getDeliveredNotifications causes 'NSInvalidArgumentException'.\r\nThe first line of the stacktrace ` \b-[UNNotification content]: unrecognized selector sent to instance` points to a type mismatch. The code attempts to get the 'content' property on UNNotification instead of UNNotificationRequest.\r\nCode should be modified to look like this. I can provide a PR\r\n{code:java}\r\n [[UNUserNotificationCenter currentNotificationCenter] getDeliveredNotificationsWithCompletionHandler:^(NSArray *notifications) {\r\n NSMutableArray *result = [NSMutableArray arrayWithCapacity:[notifications count]];\r\n\r\n for (UNNotification *notification in notifications) {\r\n [result addObject:[self dictionaryWithUserNotificationRequest:[notification request]]];\r\n }\r\n{code}", "attachment": [], "flagged": false, "summary": "Calling Titanium.App.iOS.UserNotificationCenter.getDeliveredNotifications causes 'NSInvalidArgumentException'", "creator": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "environment": "SDK >7.2", "closedSprints": [ { "id": 1084, "state": "closed", "name": "2018 Sprint 21", "startDate": "2018-10-07T23:32:40.560Z", "endDate": "2018-10-21T23:32:00.000Z", "completeDate": "2018-10-21T23:19:05.460Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "442273", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~rlustemberg] Have you get chance to verify your issue with SDK 7.4.1 as several notification issues have been fixed in ticket TIMOB-26399? I saw that you were watching that ticket actively. Thanks!", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-04T07:15:24.000+0000", "updated": "2018-10-04T07:15:24.000+0000" }, { "id": "442366", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~rlustemberg], Can you get back to us after trying on SDK 7.4.1. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-10-05T22:22:19.000+0000", "updated": "2018-10-05T22:22:19.000+0000" }, { "id": "442371", "author": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "body": "I think it was not fixed on the PR, but I’ll have a look as soon as I’m at my computer", "updateAuthor": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-10-06T11:47:45.000+0000", "updated": "2018-10-06T11:47:45.000+0000" }, { "id": "442373", "author": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "body": "Just had a look and the code was not fixed in the PR from TIMOB 26399", "updateAuthor": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-10-06T20:28:45.000+0000", "updated": "2018-10-06T20:28:45.000+0000" }, { "id": "442375", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~rlustemberg] Would you like to provide a PR for same? It would be great. We can review it and merge. Thanks!", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-07T01:16:18.000+0000", "updated": "2018-10-07T01:16:18.000+0000" }, { "id": "442379", "author": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "body": "I'll take care of that as soon as I'm back home (in about 8 hours from now). The branch for the PR is not in my laptop.\r\n", "updateAuthor": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-10-07T10:35:18.000+0000", "updated": "2018-10-07T10:35:18.000+0000" }, { "id": "442411", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged [~rlustemberg]'s PR to master and 7_4_X.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2018-10-08T17:35:15.000+0000", "updated": "2018-10-08T17:35:15.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }