{ "id": "127607", "key": "TIMOB-16621", "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": "16096", "description": "2014 Sprint 09", "name": "2014 Sprint 09", "archived": true, "released": true, "releaseDate": "2014-05-08" }, { "id": "16097", "description": "2014 Sprint 09 SDK", "name": "2014 Sprint 09 SDK", "archived": true, "released": true, "releaseDate": "2014-05-08" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-05-07T16:59:13.000+0000", "created": "2014-03-13T01:07:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "APP-837829", "module_notification_manager", "qe-closed-3.3.0", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-05-08T06:47:01.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": "Scheduling 3 or more notifications with Ti.App.iOS.scheduleLocalNotification renders either no notifications or just the last one. Is there a limit on the number of notifications that can be scheduled or the frequency in which they are scheduled?\r\nCurrently using millisecond time to ensure unique id. \r\n\r\nSample app attached\r\n\r\n{code}\r\nfunction doClick(e) {\r\n alertTime = new Date(new Date().getTime()+15000);\r\n\r\n var newNotification = Ti.App.iOS.scheduleLocalNotification({\r\n alertBody : \"Did you take your dose at ?\"+alertTime.getTime(),\r\n userInfo : {\"id\": alertTime.getTime()},\r\n date : alertTime\r\n });\r\n alert('scheduled '+alertTime.getTime() + \" alert\");\r\n\r\n\r\n}\r\n\r\n// Example cancel of last notification\r\nfunction unClick(e) {\r\n alert('cancelling ' +alertTime.getTime());\r\n Ti.App.iOS.cancelLocalNotification(alertTime.getTime());\r\n}\r\n\r\n\r\n$.index.open();\r\n{code}\r\n\r\nh3. Steps to reproduce: \r\n1. Click on schedule label three times to schedule three notifications (each has a time 15 sec from now). \r\n2. Exit App\r\n3. Either one, or no local notifications will appear in the notification center. ", "attachment": [ { "id": "46605", "filename": "localNotify.zip", "author": { "name": "stoda", "key": "stoda", "displayName": "Seth Toda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-13T01:07:48.000+0000", "size": 9442025, "mimeType": "application/zip" }, { "id": "46703", "filename": "localNotify2.zip", "author": { "name": "stoda", "key": "stoda", "displayName": "Seth Toda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-17T21:48:32.000+0000", "size": 9442679, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Limit on number of times Ti.App.iOS.scheduleLocalNotification can be used", "creator": { "name": "stoda", "key": "stoda", "displayName": "Seth Toda", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stoda", "key": "stoda", "displayName": "Seth Toda", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 50, "state": "closed", "name": "2014 Sprint 09 Tooling", "startDate": "2014-04-28T15:43:24.381Z", "endDate": "2014-05-10T03:44:00.000Z", "completeDate": "2014-05-12T13:36:16.254Z", "originBoardId": 113 } ], "comment": { "comments": [ { "id": "299348", "author": { "name": "stoda", "key": "stoda", "displayName": "Seth Toda", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~srahim], what will the native code show us? Possibly that the limit/restriction is out of our control?", "updateAuthor": { "name": "stoda", "key": "stoda", "displayName": "Seth Toda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-31T18:17:24.000+0000", "updated": "2014-03-31T18:17:24.000+0000" }, { "id": "300275", "author": { "name": "stoda", "key": "stoda", "displayName": "Seth Toda", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Update:\nThis appears to be our bug. Native worked as expected. Thread-related issue. Anything else I can provide to the customer [~srahim]? ", "updateAuthor": { "name": "stoda", "key": "stoda", "displayName": "Seth Toda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-08T20:15:55.000+0000", "updated": "2014-04-08T20:15:55.000+0000" }, { "id": "301963", "author": { "name": "stoda", "key": "stoda", "displayName": "Seth Toda", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any update on this?", "updateAuthor": { "name": "stoda", "key": "stoda", "displayName": "Seth Toda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-21T21:42:17.000+0000", "updated": "2014-04-21T21:42:17.000+0000" }, { "id": "303704", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/5666", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-06T21:20:28.000+0000", "updated": "2014-05-06T21:20:28.000+0000" }, { "id": "303834", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "CR+FR", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-07T16:59:13.000+0000", "updated": "2014-05-07T16:59:13.000+0000" }, { "id": "303978", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the FIXED with:\r\n\r\nAppc-Studio:3.3.0.201405011408 \r\nsdk:3.3.0.v20140507163312 \r\nacs:1.0.14 \r\nalloy:1.4.0-dev \r\nnpm:1.3.2 \r\ntitanium:3.3.0-dev \r\ntitanium-code-processor:1.1.1 \r\nxcode:5.1.1 \r\nDevice:Iphone5s(v7.1.1)\r\n\r\nAble to get all the number of notifications.\r\nHence Closing the issue as working as expected.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-08T06:44:48.000+0000", "updated": "2014-05-08T06:44:48.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }