Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-14218

Local notification is triggering daily and same text is appearing everyday.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: cordova-ios 4.5.0
    • Fix Version/s: cordova-ios 4.5.0
    • Component/s: cordova-ios, Ionic
    • Labels:
      None
    • Environment:
    • Flags:
      Important

      Description

      Hi Team, 

      I am developing a hybrid application with cordova and ionic1 , In my application I am triggering a local notifications on particular dates at 8:00 PM, First notification is getting perfectly on time with expected title.But after that I am getting notification daily and notification with same title, If suppose two notification dates are come one after another , I am getting notification with previous title.I am scheduling a notification on specific dates only otherwise I am canceling the notification. Please help me on this.  

      This is my code:
      var d = new Date();
      d.setHours(20,0,0,0);
      cordova.plugins.notification.local.schedule([

      { id: 2, title: "Paramhamsa Vani", text: Title, at: d, every: "day", icon: 'file://platforms/android/res/drawable- ldpi/icon.png', sound: 'res://platform_default' }

      ,
      ]);
      }
      else
      {
      cordova.plugins.notification.local.cancel(2, function ()

      { Logger.debug("Event Notification has been canceled!!!!"); }

      );
      }
      }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Chakravarthy Chakravarthy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 12h
                12h
                Remaining:
                Remaining Estimate - 12h
                12h
                Logged:
                Time Spent - Not Specified
                Not Specified