Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16621

iOS: Limit on number of times Ti.App.iOS.scheduleLocalNotification can be used

    Details

    • Sprint:
      2014 Sprint 09 Tooling

      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?
      Currently using millisecond time to ensure unique id.

      Sample app attached

      function doClick(e) {
          alertTime = new Date(new Date().getTime()+15000);
       
          var newNotification = Ti.App.iOS.scheduleLocalNotification({
              alertBody : "Did you take your dose at ?"+alertTime.getTime(),
              userInfo : {"id": alertTime.getTime()},
              date : alertTime
          });
          alert('scheduled '+alertTime.getTime() + " alert");
       
       
      }
       
      // Example cancel of last notification
      function unClick(e) {
          alert('cancelling ' +alertTime.getTime());
          Ti.App.iOS.cancelLocalNotification(alertTime.getTime());
      }
       
       
      $.index.open();
      

      Steps to reproduce:

      1. Click on schedule label three times to schedule three notifications (each has a time 15 sec from now).
      2. Exit App
      3. Either one, or no local notifications will appear in the notification center.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                srahim Sabil Rahim
                Reporter:
                stoda Seth Toda
                Reviewer:
                Vishal Duggal (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-18472
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code