Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70428

Local notifications relative from now isn’t working

$
0
0

@Destroy wrote:

I’m trying to schedule a time relative notification.

    this.localNotifications.schedule({
      id: 3,
      trigger: {
        in: 1,
        every: ELocalNotificationTriggerUnit.HOUR
      },
      title: 'every 1 Hour',
      text: 'Every 1 Hour schedule',
      foreground: true,
      sound: this.isAndroid ? 'file://sound.mp3' : 'file://beep.caf'
    });

But the notification appears on round hour.
For example if I schedule a notification at 7:45 PM the notification will appear at 8:00 PM instead of 8:45 PM.
Any idea how to achieve this?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>