Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification Repeats #1204

Closed
mailparikshit opened this issue Feb 2, 2017 · 1 comment
Closed

Notification Repeats #1204

mailparikshit opened this issue Feb 2, 2017 · 1 comment

Comments

@mailparikshit
Copy link

i have scheduled a Notification thrice a minute
Example:
Schedule 1: 2017-02-02 14:23:12
Schedule 2: 2017-02-02 14:23:32
Schedule 3: 2017-02-02 14:23:52

i get 3x3 Triggers
For 4 Schedule in a minute provides 4x4 triggers (i.e. 4 trigger for 1st schedule,4 for 2nd, and ...)

Schedule Code:

cordova.plugins.notification.local.schedule({
            id: notifyid, /* Unique id for all schedule */
            title: status,
            text: 'sch send',
            at:new Date(notifytime),  /* date Time */
            data: { key:'my schedule' },
            every: 0
        })

Trigger Code:

cordova.plugins.notification.local.on('trigger', function (notifications) {
          console.log(notifications.id); // printing Notification id's which shows 4 times,3 times repeat for  
                                                         //same id.
            
       
        }, this);
@rwillett
Copy link
Collaborator

rwillett commented Feb 2, 2017

Use the template in #1188 and provide more information please.

You'll need to provide more code as well. Such as how you calculate notifyid and notifytime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants