# Local Notification every day at same time

**URL:** <https://forum.ionicframework.com/t/local-notification-every-day-at-same-time/171471>\
**Category:** ionic-v3\
**Created:** [August 20, 2019, 10:00am UTC](https://forum.ionicframework.com/t/local-notification-every-day-at-same-time/171471 "2019-08-20T10:00:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lsantaniello](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@lsantaniello](https://forum.ionicframework.com/u/lsantaniello)\
**Post date:** [August 20, 2019, 10:00am UTC](https://forum.ionicframework.com/t/local-notification-every-day-at-same-time/171471/1 "2019-08-20T10:00:33Z")

</div>

I integrated local notification plugin into my app and I want to schedule a notify every day at same hour:minute.

```auto
"@ionic-native/local-notifications": "^4.20.0",
"cordova-plugin-local-notification": "^0.9.0-beta.2",

```

[Official Documentation](https://github.com/katzer/cordova-plugin-local-notifications#triggers) seems different to my version but I don’t understand the reason.

In my VSCode tool I receive compilation error when I use property “every”

It doesn’t work

```auto
this.localNotifications.schedule({
        title: 'Design team meeting',
        trigger: { every: 'day', hour: 10, minute: 30 }
});

```

It works

```auto
var time = new Date().getTime() + 5 * 1000;
      
// Schedule delayed notification
this.localNotifications.schedule({
        id: 1,
        title: 'My notify' + new Date().toISOString(),
        text: 'La mia notifica locale',
        trigger: {at: new Date(time)}
});

```

Help me please

L

---

<div class="post-metadata">

**Author:** ![lsantaniello](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@lsantaniello](https://forum.ionicframework.com/u/lsantaniello)\
**Post date:** [August 20, 2019, 1:57pm UTC](https://forum.ionicframework.com/t/local-notification-every-day-at-same-time/171471/2 "2019-08-20T13:57:08Z")

</div>

I tried this scheduling:

```auto
this.localNotifications.schedule({ 
          id: i,
          text: "Notifica 15 ",
          title: 'Hello!!! ', 
          trigger: { 
            every: {
              hour: 15,
              minute: 40 
            } 
          } 
        });

```

the notify appears but there is a infinite loop of notification

☹

---

<div class="post-metadata">

**Author:** ![lsantaniello](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@lsantaniello](https://forum.ionicframework.com/u/lsantaniello)\
**Post date:** [September 5, 2019, 12:34pm UTC](https://forum.ionicframework.com/t/local-notification-every-day-at-same-time/171471/3 "2019-09-05T12:34:19Z")

</div>

could you please help me?

---

<div class="post-metadata">

**Author:** ![Hech96](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/hech96/32/134048_2.png) [@Hech96](https://forum.ionicframework.com/u/Hech96)\
**Post date:** [September 23, 2019, 2:42pm UTC](https://forum.ionicframework.com/t/local-notification-every-day-at-same-time/171471/4 "2019-09-23T14:42:42Z")

</div>

It will keep sending notifications for one minute till the time you putted passes, so you need to make a count.  
inside the trigger add count:

```auto
this.localNotifications.schedule({ 
          id: i,
          text: "Notifica 15 ",
          title: 'Hello!!! ', 
          trigger: { 
            every: {
              hour: 15,
              minute: 40 
            } ,
            count: 1,
          } 
        });

```

---

<div class="post-metadata">

**Author:** ![lsantaniello](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@lsantaniello](https://forum.ionicframework.com/u/lsantaniello)\
**Post date:** [February 7, 2020, 9:58pm UTC](https://forum.ionicframework.com/t/local-notification-every-day-at-same-time/171471/5 "2020-02-07T21:58:01Z")

</div>

Thanks @Hech96, but I need to schedule local push every day at specific time forever. I will disable it only if user disable manually push notification service.

I’d like to schedule trigger for every day but I don’t understand How.

Thanks for your support

L

---

<div class="post-metadata">

**Author:** ![smoothkush](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@smoothkush](https://forum.ionicframework.com/u/smoothkush)\
**Post date:** [May 20, 2021, 8:13am UTC](https://forum.ionicframework.com/t/local-notification-every-day-at-same-time/171471/6 "2021-05-20T08:13:59Z")

</div>

Hello, to schedule trigger for every day, you can use the code below. For example schedule notification every day at 9:45 AM

```auto
let firstNotificationTime = new Date();
firstNotificationTime.setHours(firstNotificationTime.getHours() + (24));
firstNotificationTime.setHours(9);
firstNotificationTime.setMinutes(45); 

this.localNotifications.schedule({
        title: 'Design team meeting',
        trigger: { at: firstNotificationTime }
});

```
