question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] Repeating notification starting in X hours then repeating every Y hours.

See original GitHub issue

Question on repeating triggers

Your Environment

  • Plugin version: latest from github, master branch,
  • Platform: iOS
  • OS version: 11
  • Device manufacturer / model: iOS
  • Cordova version (cordova -v): 7.1.0
  • Cordova platform version (cordova platform ls): 4.5.3
  • Plugin config
  • Ionic Version (if using Ionic) 3.8.0

Expected Behavior

I’m trying to schedule a notification that starts in 2 hours and then from their repeats every 2 hours. Is this possible? I know from previous versions of the plugin there was this firstAt parameter, but from looking at the source now I don’t think this is used any more.

Actual Behavior

N/A

Steps to Reproduce

N/A

Context

Trying to schedule a notification to start in X hours and then repeat every Y hours.

Debug logs

N/A

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
katzercommented, Nov 8, 2017

@jlchereau I haven’t tested with Android, but on iOS, it doesn’t trigger immediatly…

Thats my code:

cordova.plugins.notification.local.schedule({
    text: 'Scheduled every minute',
    trigger: { every: 1, unit: 'minute' },
    foreground: true,
    sound: true
});

I’ve also tested with trigger: { every: 2, unit: 'hour' } and it behaves the same way.

1reaction
jlchereaucommented, Nov 6, 2017

I can confirm that it triggers immediately on iPhone SE + iPad Pro with iOS 11.1. and Nexus 7 with Android 5.1.1 with plugin v0.8.5.

Read more comments on GitHub >

github_iconTop Results From Across the Web

repeating local notifications | Apple Developer Forums
I am making an app that configures notifications on a save button and many ... X repeats every day and then notification B...
Read more >
How to get Repeated Notifications using Rule Machine
To get something to notify repeatedly until some conditions are met, try one of these: If a single condition is going to become...
Read more >
Repeat UNNotifications every day and every half hour
If you want to show local notifications for every half hour between selected hours then you have to set different notification for every...
Read more >
Repeat a Unix command every x seconds forever
"How to run a program repeatedly so that there are X seconds delay between when the program finished, and the next starts". The...
Read more >
Schedule recurring Teams channel meetings in Teams ...
Recurring meetings have the same start time (e.g., 10 a.m.) and the same end time (e.g., 10:50 a.m.) for the entire meeting series....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found