katzer / cordova-plugin-local-notifications

Cordova Local-Notification Plugin
Apache License 2.0
2.57k stars 1.75k forks source link

It keeps rining whole minutes... #1818

Closed kotran88 closed 2 weeks ago

kotran88 commented 5 years ago

let notification2:any = { title: 'Happy Birthday!!!', trigger: { every: { hour: 3, minute: 2,second:0 } } } this.notification.schedule(notification2);

I'm using ionic v3 eventhough I set second to 0 , it gives me alarm for whole time of 3:2am even if I quit it. and when it become 3:3am, alarm quit. I can I set alarm only once at 3:2am. I want to get notification for every day only one time at 3:2am.

jmeyers91 commented 5 years ago

It looks like this plugin doesn't accept a second option. I was running into the same issue and fixed it in #1813, but I thought my issue was related to the weekday option, so I'm not 100% sure it will fix your use-case.

katzer commented 5 years ago

@kotran88 @jmeyers91 I cannot reproduce that

GroupeBEL commented 4 years ago

@katzer I tested on Android 10 & 8 both devices are samsung / plugin v9 beta2

 this.localNotifications.schedule({
      id: 100,
      title: 'Mood',
      text: 'Please let us know how you are feeling today!',
      trigger: { every: { hour: hr, minute: min } },
      foreground: true,
      led: 'FF0000',
      vibrate: true,
      sound: null
    });

It keeps rining whole minute on my android device and works fine on iOS I tried v9 beta 3 and it's workin fine :) , is there any possibilty to update the plugin version on npm in the next update ?

thanks.