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

How can i call one function and stop the alarm #25

Open
binodpariyar opened this issue Aug 21, 2014 · 1 comment
Open

How can i call one function and stop the alarm #25

binodpariyar opened this issue Aug 21, 2014 · 1 comment

Comments

@binodpariyar
Copy link

Now when the alarm is triggered my function is being called in a infinite loop ..
is there time limit in the alarm and how can i set it ??
Is there any way to store the id of alarm that is just made

@Red-Folder
Copy link
Owner

These questions seem to be more about how to use Javscript rather than the Plugin ...

Q1) Now when the alarm is triggered my function is being called in a infinite loop ..
A1) How is it being called in an infinite loop? I don't understand what you mean by this. The scheduler will start a class (activity). This is handed off to the operating system effectively, I can't see what sort of infinite loop you are getting

Q2) is there time limit in the alarm and how can i set it ??
A2) Do you mean in the activity that is started? If you are opening an alarm clock type page which you want to close automatically after a period of time, then just use javascript to close it using setInterval

Q3) Is there any way to store the id of alarm that is just made
A3) Yes. Maybe look at local storage or cookies if you want to store the ID between stop & start of app.

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

No branches or pull requests

2 participants