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

iOS: Local notification not triggered when setting repeat (only 7.3.0.GA)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 7.3.0
    • Fix Version/s: Release 7.3.1
    • Component/s: iOS
    • Labels:
    • Environment:

      iOS 11.4, SDK version 7.3.0.GA

      Description

      I've noticed that local push notifications won't be shown when setting the repeat property, it does show when it's omitted. This seems to have started with SDK 7.3.0.GA.

      Example:

      var win = Ti.UI.createWindow({
        backgroundColor: "white",
        layout: "vertical"
      });
       
      var repeatSwitch = Ti.UI.createSwitch();
       
      var btn = Ti.UI.createButton({
        top: 50,
        title: "Schedule"
      });
       
      btn.addEventListener("click", function() {
        var not = {
          date: new Date(new Date().getTime() + 3000),
          alertTitle: 'Notification',
          alertBody: 'This is a notification',
          badge: 1,
          userInfo: {
            id: '1'
          },
          repeat: repeatSwitch.value ? "daily" : undefined
        };
       
        console.log('schedule: ' + JSON.stringify(not));
       
        Ti.App.iOS.scheduleLocalNotification(not);
      });
       
      win.add(btn);
      win.add(Ti.UI.createLabel({
        text: "Repeat?"
      }));
      win.add(repeatSwitch);
       
      win.addEventListener("open", function() {
        Ti.App.iOS.registerUserNotificationSettings({
          types: [
            Ti.App.iOS.USER_NOTIFICATION_TYPE_ALERT,
            Ti.App.iOS.USER_NOTIFICATION_TYPE_SOUND,
            Ti.App.iOS.USER_NOTIFICATION_TYPE_BADGE
          ]
        });
      });
       
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              teunklijn@telfort.nl Teun Klijn
              Reviewer:
              Vijay Singh
              Tester:
              Samir Mohammed
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code