{ "id": "162583", "key": "AC-4356", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2016-08-21T22:27:44.000+0000", "created": "2016-08-15T05:56:57.000+0000", "labels": [ "ios" ], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-08-22T15:13:48.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14552", "name": "Appcelerator CLI", "description": "Please enter tickets related to Tooling and the CLI here" }, { "id": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "It woud be nice to have a functional liveview even when receiving push notifications.\r\n\r\nStacktrace\r\n\r\n-[TiApp application:didReceiveRemoteNotification:]: unrecognized selector sent to instance 0x147d1d650\r\n[ERROR] : The application has crashed with an uncaught exception 'NSInvalidArgumentException'.\r\n[ERROR] : Reason:\r\n[ERROR] : -[TiApp application:didReceiveRemoteNotification:]: unrecognized selector sent to instance 0x147d1d650\r\n[ERROR] : Stack trace:\r\n[ERROR] : \r\n[ERROR] : 0 CoreFoundation 0x00000001813fedb0 + 124\r\n[ERROR] : 1 libobjc.A.dylib 0x0000000180a63f80 objc_exception_throw + 56\r\n[ERROR] : 2 CoreFoundation 0x0000000181405c4c + 0\r\n[ERROR] : 3 CoreFoundation 0x0000000181402a1c + 408\r\n[ERROR] : 4 CoreFoundation 0x0000000181300c5c _CF_forwarding_prep_0 + 92\r\n[ERROR] : 5 MyApp 0x00000001002707f4 MyApp + 2017268\r\n[ERROR] : 6 UIKit 0x00000001868161a8 + 2676\r\n[ERROR] : 7 UIKit 0x0000000186803f84 + 136\r\n[ERROR] : 8 FrontBoardServices 0x0000000182d9f7ac + 36\r\n[ERROR] : 9 FrontBoardServices 0x0000000182d9f618 + 168\r\n[ERROR] : 10 FrontBoardServices 0x0000000182d9f9c8 + 56\r\n[ERROR] : 11 CoreFoundation 0x00000001813b509c + 24\r\n[ERROR] : 12 CoreFoundation 0x00000001813b4b30 + 540\r\n[ERROR] : 13 CoreFoundation 0x00000001813b2830 + 724\r\n[ERROR] : 14 CoreFoundation 0x00000001812dcc50 CFRunLoopRunSpecific + 384\r\n[ERROR] : 15 GraphicsServices 0x0000000182bc4088 GSEventRunModal + 180\r\n[ERROR] : 16 UIKit 0x00000001865c6088 UIApplicationMain + 204\r\n[ERROR] : 17 Cablecol 0x0000000100089658 Cablecol + 22104\r\n[ERROR] : 18 libdyld.dylib 0x0000000180e7a8b8 + 4\r\n[ERROR] : *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[TiApp application:didReceiveRemoteNotification:]: unrecognized selector sent to instance 0x147d1d650'\r\n[ERROR] : *** First throw call stack:\r\n[ERROR] : (0x1813fedb0 0x180a63f80 0x181405c4c 0x181402a1c 0x181300c5c 0x1002707f4 0x1868161a8 0x186803f84 0x182d9f7ac 0x182d9f618 0x182d9f9c8 0x1813b509c 0x1813b4b30 0x1813b2830 0x1812dcc50 0x182bc4088 0x1865c6088 0x100089658 0x180e7a8b8)\r\n[LiveView] Client disconnected\r\n", "attachment": [], "flagged": false, "summary": "LiveView: Crash receiving push notification when app is foreground IOS", "creator": { "name": "osc4rrico@gmail.com", "key": "osc4rrico@gmail.com", "displayName": "Oscar J. Rico Reyes", "active": true, "timeZone": "America/Bogota" }, "subtasks": [], "reporter": { "name": "osc4rrico@gmail.com", "key": "osc4rrico@gmail.com", "displayName": "Oscar J. Rico Reyes", "active": true, "timeZone": "America/Bogota" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.11.4\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\nTitanium CLI\r\n CLI Version = 5.0.9\r\nTitanium SDK\r\n SDK Version = 5.3.1.GA\r\n SDK Path = /Users/myuser/Library/Application Support/Titanium/mobilesdk/osx/5.3.1.GA\r\n Target Platform = iphone", "comment": { "comments": [ { "id": "393720", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Make sure you have your entitlements set correctly, e.g. {{UIBackgroundModes}} must include {{remote-notification}}. Otherwise, the delegate for receiving it will not be available (see code [here|https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiApp.m#L638]. After you add it, you need to do a clean build at leat once. Closing for now.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-21T22:27:38.000+0000", "updated": "2016-08-21T22:27:38.000+0000" }, { "id": "393774", "author": { "name": "osc4rrico@gmail.com", "key": "osc4rrico@gmail.com", "displayName": "Oscar J. Rico Reyes", "active": true, "timeZone": "America/Bogota" }, "body": "Thanks for your response @Hans Knoechel, here is the config of the application i am using. There is already remote-notification entitlements\r\n\r\n{code:xml}\r\n \r\n true\r\n true\r\n \r\n \r\n UISupportedInterfaceOrientations~iphone\r\n \r\n UIInterfaceOrientationPortrait\r\n \r\n UISupportedInterfaceOrientations~ipad\r\n \r\n UIInterfaceOrientationPortrait\r\n UIInterfaceOrientationPortraitUpsideDown\r\n UIInterfaceOrientationLandscapeLeft\r\n UIInterfaceOrientationLandscapeRight\r\n \r\n UIRequiresPersistentWiFi\r\n \r\n UIPrerenderedIcon\r\n \r\n UIStatusBarHidden\r\n \r\n UIStatusBarStyle\r\n UIStatusBarStyleDefault\r\n UIBackgroundModes\r\n \r\n fetch\r\n remote-notification\r\n \r\n NSAppTransportSecurity\r\n \r\n NSAllowsArbitraryLoads\r\n \r\n \r\n \r\n \r\n \r\n{code}\r\n\r\n", "updateAuthor": { "name": "osc4rrico@gmail.com", "key": "osc4rrico@gmail.com", "displayName": "Oscar J. Rico Reyes", "active": true, "timeZone": "America/Bogota" }, "created": "2016-08-22T15:13:48.000+0000", "updated": "2016-08-22T15:13:48.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }