Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback triggered immediately #1194

Closed
jashachik opened this issue Jan 18, 2017 · 2 comments
Closed

Callback triggered immediately #1194

jashachik opened this issue Jan 18, 2017 · 2 comments

Comments

@jashachik
Copy link

jashachik commented Jan 18, 2017

I have a simple notification that calls a callback after a minute:

function callback()
{
  console.log("callback!");
}
let now = new Date().getTime(),
      _10_sec_from_now = new Date(now + 60*1000);
    window.cordova.plugins.notification.local.hasPermission(function (granted) {
      console.log('Permission has been granted: ' + granted);
    });
    window.cordova.plugins.notification.local.schedule({
      id: 1,
      title: "Title",
      text: "text",
      at: _10_sec_from_now
    }, callback);

I am seeing the log as soon as the page loads. Any pointers would be great, thank you!

james

@rwillett
Copy link
Collaborator

Use the template in #1188 to provide more information.

@rwillett
Copy link
Collaborator

Closed as no response from original poster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants