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.

Example of successful repeating callbacks

See original GitHub issue

Good evening,

It looks like the callback functionality isn’t working as expected.

My code:

      id: 1,
      title: "Message Title",
      text: "Message Text",
      at: date,
      every: 'minute',
      ongoing: true
    }, submitCallBack);

Please advise on how to get this working

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8

github_iconTop GitHub Comments

Tawpiecommented, Feb 21, 2017

Thanks Steve.

I’m always scared to death of JS unknown property warnings. Depending on the JS engine, things may or may not crap out when the engine encounters that error. I’ve found that iOS tends to stop interpreting the balance of the file once it encounters an error whereas Chrome desktop and Android ‘may’ carry on. Regardless, any time I have any kind of error/warning in JS I always eliminate it because once it occurs I don’t trust the interpreter anymore.

A separate issue is indeed in order, perhaps a third for the “unknown property: firstAt”—although they may be related if the lack of a firstAt property is causing the JS engine (or the native code) to stop interpreting the file.

On Feb 21, 2017, at 11:16 AM, Steve Racine wrote:


I’m not using vanilla Cordova, but I’m building my project using PhoneGap, Cloud Builder, using the most recent version of the plugin. In my config.xml I don’t define a version number, so it will pull whatever the master version is.

To schedule the events I use the following settings:

{ id: i+1, title: “STRING”, text: “STRING”, firstAt: firstNotification, every: “day”, data: {JSON} } Then after I build an array of notifications to register, I call:

cordova.plugins.notification.local.schedule(reminders, function(){ console.log(‘notifications scheduled’); app.loadHUB(); }); There IS a warning that says “Unknown property: firstAt”, but the notification will be delivered whether the app is running, in the background, or if the app is closed.

However, I should note that my app has multiple notifications and I’m only receiving a notification alert (for lack of better term) for the ones that were created FIRST. I register 2 notifications at a different spot of my app and I never get the banner on my lockscreen, even though they are triggered as they come up when querying for “triggered” notifications. Same code, but they don’t come to the notification tray or lock screen.

Hope that’s clear. I’m still trying to debug the second issue, was going to make a new thread, but I’m at a loss as to why it wouldn’t work.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread

rwillettcommented, Apr 26, 2017

Closed as no update from OP

Read more comments on GitHub >

github_iconTop Results From Across the Web

Back to Basics: What are Callbacks in JavaScript? - SitePoint
Learn what JavaScript callbacks are, how they work, their different types, how to create them, and how to employ them in your own...
Read more >
Four Tips for Successful Callbacks - InfoCision
Make sure the callback offer is repeated several times to give hesitant callers a chance to take advantage of the benefit. Don't leave...
Read more >
10 Sales Voicemail Scripts That Get Calls Returned
Follow our proven sales voicemail scripts to get 3x as many returned calls from prospects. See what mistakes to avoid and some example...
Read more >
Multiple callbacks for an output - Dash Python
Try combining your inputs and callback functions together into one function assume as a sketch example I have html.Button(id="reset") html.
Read more >
An Essential Guide to JavaScript Callbacks
A synchronous callback is executed during the execution of the high-order function that uses the callback. The isOdd and isEven are examples of...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found