Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49526

LocalNotifications Capacitor V3

$
0
0

@netkow

The documentation for this V3 is extremely lacking.

Please can someone from the core team (or community) give an example of what the schedule needs to be, so that it works for each of the following:

  1. Schedule a DAILY notification at a specific time, e.g. Every DAY at 15:00
  2. Schedule a WEEKLY notification at a specific time, e.g. Every WEEK at 15:00
  3. Schedule a SPECIFIC DAY OF THE WEEK notification at a specific time, e.g. Every WEDNESDAY at 15:00

Searched everywhere, tried lots of things and not getting anything reliable working.

At the moment if I do:

      var d = new Date();

      schedule = {
        on: {
          hour: d.getHours(),
          minute: d.getMinutes()
        },
        allowWhileIdle: true
      };

I can get a daily notification appearing, but it always says it’s late by 1d or 2d from whenever I’d first set it, not ‘Now’ or ‘Today’.

Thank you

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49526

Trending Articles



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