{ "id": "172505", "key": "AC-5993", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2018-11-17T09:41:44.000+0000", "created": "2018-10-27T19:48:35.000+0000", "labels": [ "defect", "iphone" ], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [ { "id": "56994", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "172613", "key": "TIMOB-26559", "fields": { "summary": "iOS: App crash and missing events for local notifications", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "56974", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "172547", "key": "TIMOB-26513", "fields": { "summary": "iOS: Push notifications crash the app when used with third-party module", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-11-17T09:41:44.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "In 7.4.1, call Ti.App.iOS.scheduleLocalNotification crash the app instantly. The function works properly in 7.4.0 and prior versions.\r\n\r\nSample code:\r\n{code}\r\nvar tempdate = new Date(new Date().getTime() + 5000);\r\nvar curNotif = {\r\n\talertBody : \"Me\",\r\n\talertTitle : 'It is me',\r\n\tbadge: 99,\r\n\tuserinfo: {id: '123'},\r\n\tdate: tempdate\t\t\t\t\t\t\r\n};\r\n\t\t\t\t\t\r\nTi.App.iOS.scheduleLocalNotification(curNotif);\r\n{code}\r\n\r\nCrash log:\r\n{code}\r\nERROR] : The application has crashed with an uncaught exception 'NSInvalidArgumentException'.\r\n[ERROR] : Reason:\r\n[ERROR] : -[TiApp application:didReceiveRemoteNotification:]: unrecognized selector sent to instance 0x103901b60\r\n[ERROR] : Stack trace:\r\n[ERROR] : 0 CoreFoundation 0x0000000184177f10 + 252\r\n[ERROR] : 1 libobjc.A.dylib 0x0000000183345a40 objc_exception_throw + 56\r\n[ERROR] : 2 CoreFoundation 0x000000018408f154 + 0\r\n[ERROR] : 3 CoreFoundation 0x000000018417d50c + 640\r\n[ERROR] : 4 CoreFoundation 0x000000018417f4bc _CF_forwarding_prep_0 + 92\r\n[ERROR] : 5 A1 0x00000001002bd928 A1 + 1464616\r\n[ERROR] : 6 UIKitCore 0x00000001b0fbf220 + 3176\r\n[ERROR] : 7 UIKitCore 0x00000001b08462d8 + 680\r\n[ERROR] : 8 UIKitCore 0x00000001b0845fe0 + 432\r\n[ERROR] : 9 UIKitCore 0x00000001b084b1a0 + 220\r\n[ERROR] : 10 UIKitCore 0x00000001b084c100 _performActionsWithDelayForTransitionContext + 112\r\n[ERROR] : 11 UIKitCore 0x00000001b084b058 + 248\r\n[ERROR] : 12 UIKitCore 0x00000001b084fd9c + 368\r\n[ERROR] : 13 UIKitCore 0x00000001b0b91118 + 468\r\n[ERROR] : 14 FrontBoardServices 0x0000000186ba85a0 + 228\r\n[ERROR] : 15 libdispatch.dylib 0x0000000183bb0484 + 16\r\n[ERROR] : 16 libdispatch.dylib 0x0000000183b873f0 + 216\r\n[ERROR] : 17 FrontBoardServices 0x0000000186be6640 + 40\r\n[ERROR] : 18 FrontBoardServices 0x0000000186be62cc + 416\r\n[ERROR] : 19 FrontBoardServices 0x0000000186be68e8 + 56\r\n[ERROR] : 20 CoreFoundation 0x00000001841065b8 + 24\r\n[ERROR] : 21 CoreFoundation 0x0000000184106538 + 88\r\n[ERROR] : 22 CoreFoundation 0x0000000184105e1c + 176\r\n[ERROR] : 23 CoreFoundation 0x0000000184100ce8 + 1040\r\n[ERROR] : 24 CoreFoundation 0x00000001841005b8 CFRunLoopRunSpecific + 436\r\n[ERROR] : 25 GraphicsServices 0x0000000186374584 GSEventRunModal + 100\r\n[ERROR] : 26 UIKitCore 0x00000001b0fa8bc8 UIApplicationMain + 212\r\n[ERROR] : 27 A1 0x000000010015f8b8 A1 + 30904\r\n[ERROR] : 28 libdyld.dylib 0x0000000183bc0b94 + 4\r\n-- End application log -------------------------------------------------------\r\n{code}", "attachment": [], "flagged": false, "summary": "7.4.1 Ti.App.iOS.scheduleLocalNotification crash app", "creator": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 12, SDK 7.4.1", "comment": { "comments": [ { "id": "443019", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~tlau] I am not able to reproduce the crash. It is working fine iPhone 7 plus (iOS 12) simulator. I am using following test case -\r\n\r\n{code:java}\r\nTi.App.iOS.registerUserNotificationSettings({\r\n types: [\r\n Ti.App.iOS.USER_NOTIFICATION_TYPE_ALERT\r\n ],\r\n});\r\nvar tempdate = new Date(new Date().getTime() + 5000);\r\nvar curNotif = {\r\n alertBody : \"Me\",\r\n alertTitle : 'It is me',\r\n badge: 99,\r\n userinfo: {id: '123'},\r\n date: tempdate \r\n};\r\n \r\nTi.App.iOS.scheduleLocalNotification(curNotif);\r\n{code}\r\n\r\nCan you please share complete test code for reproducing the issue? Thanks!", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-29T08:44:30.000+0000", "updated": "2018-10-29T08:44:30.000+0000" }, { "id": "443020", "author": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For the NotificationSettings, I have two additional parameters.\r\n\r\ntypes : [Ti.App.iOS.USER_NOTIFICATION_TYPE_ALERT, Ti.App.iOS.USER_NOTIFICATION_TYPE_SOUND, Ti.App.iOS.USER_NOTIFICATION_TYPE_BADGE],\r\n", "updateAuthor": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-29T09:07:17.000+0000", "updated": "2018-10-29T09:07:17.000+0000" }, { "id": "443022", "author": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "body": "And able to reproduce on iPhone X, 6 Plus and iPad too. \r\n", "updateAuthor": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-29T09:35:03.000+0000", "updated": "2018-10-29T09:35:03.000+0000" }, { "id": "443043", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I am testing the sample code from Vijay with the addition to three types and I am also not able to reproduce the issue in the simulator with SDK 7.4.1.GA. Please share the full reproducible code. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-10-29T22:37:57.000+0000", "updated": "2018-10-29T22:37:57.000+0000" }, { "id": "443044", "author": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "body": "That is the full code listed about. In simulator, I do not see the notification but the badge number increased by 1. When test with real iPhone X, 6 Plus and iPad device, the app simply just crashed.\r\n\r\nI revert that SDK back to 7.4.0 without changing and code, I see the notification popup without crash.\r\n\r\n", "updateAuthor": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-29T22:50:29.000+0000", "updated": "2018-10-29T22:50:29.000+0000" }, { "id": "443076", "author": { "name": "peaceofmind7", "key": "peaceofmind7", "displayName": "john adamis", "active": true, "timeZone": "Europe/Helsinki" }, "body": "I was also affected by this issue for a test case i used the following code with a real device \r\n\r\nhttps://gist.github.com/lbrenman/d99076889cf55564af8bf2fd399af025\r\n\r\nThis is crucial since we need to use both local and push notifications. (since right now 7.4.0 works well with local notifications but has issues with push notifications)", "updateAuthor": { "name": "peaceofmind7", "key": "peaceofmind7", "displayName": "john adamis", "active": true, "timeZone": "Europe/Helsinki" }, "created": "2018-10-30T10:56:23.000+0000", "updated": "2018-10-30T10:56:23.000+0000" }, { "id": "443346", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~tlau] [~peaceofmind7] Can you please check TIMOB-26513, which fixes similar stuff. I guess this issue should be fixed with that patch. Thanks!", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-07T04:39:31.000+0000", "updated": "2018-11-07T04:39:31.000+0000" }, { "id": "443592", "author": { "name": "mfavreau", "key": "mfavreau", "displayName": "Marc Favreau", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FYI, I NEVER had a problem with a simulator. A HUGE part of the issue!", "updateAuthor": { "name": "mfavreau", "key": "mfavreau", "displayName": "Marc Favreau", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-14T19:11:39.000+0000", "updated": "2018-11-14T19:11:39.000+0000" }, { "id": "443719", "author": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Vijay, I can confirm that the reported issue is fixed in SDK 7.5.0. App not crashing anymore without any code change. Please close ticket.\r\n\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-17T09:06:15.000+0000", "updated": "2018-11-17T09:06:15.000+0000" }, { "id": "443720", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "Fixed in TIMOB-26513", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-11-17T09:41:44.000+0000", "updated": "2018-11-17T09:41:44.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }