{ "id": "79243", "key": "TIMOB-5008", "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": "12075", "description": "", "name": "Sprint 2011-35", "archived": true, "released": true, "releaseDate": "2011-09-05" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-05T15:40:41.000+0000", "created": "2011-08-15T10:37:54.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:46:29.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": "Creating a LocalNotification without the userInfo property causes the application to crash. This breaks:\r\n\r\n{code}\r\nTi.App.iOS.scheduleLocalNotification({\r\n date: new Date(new Date().getTime() + 3000),\r\n alertBody: \"Let's crash!\"\r\n});\r\n\r\nTi.App.iOS.addEventListener('notification', function(e) {});\r\n{code}\r\n\r\nAdding dummy data will work (and is an acceptable work-around for the time being):\r\n\r\n{code}\r\nTi.App.iOS.scheduleLocalNotification({\r\n date: new Date(new Date().getTime() + 3000),\r\n userInfo: {why: 'me'},\r\n alertBody: \"I'm fine\"\r\n});\r\n\r\nTi.App.iOS.addEventListener('notification', function(e) {});\r\n{code}", "attachment": [ { "id": "22752", "filename": "app.js", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-31T15:36:46.000+0000", "size": 1343, "mimeType": "application/x-javascript" }, { "id": "22754", "filename": "bg.js", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-31T15:39:24.000+0000", "size": 987, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "iOS: Ti.App.iOS.scheduleLocalNotification crashes without userInfo", "creator": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "environment": "Titanium Mobile 1.7.2\r\niOS 4.3", "comment": { "comments": [ { "id": "165337", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.0.v20110906155354 with on\niPhone 4 4.3.4\niPad2 4.3.5\nSimulator 4.0", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-07T17:47:26.000+0000", "updated": "2011-09-07T17:47:26.000+0000" }, { "id": "171665", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Standardizing summary and labels.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-05T15:40:09.000+0000", "updated": "2011-11-05T15:40:09.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }