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

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

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • cordova-ios 4.5.0
    • cordova-ios 4.5.0
    • cordova-ios, Ionic
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            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

                Slack

                  Issue deployment