-
Notifications
You must be signed in to change notification settings - Fork 230
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
stopBackgroundTimer not working #310
Comments
I am also having the exact same issue any solution about this ? |
For me the // Start a timer that runs continuous after X milliseconds
const intervalId = BackgroundTimer.setInterval(() => {
// this will be executed every 200 ms
// even when app is the the background
console.log('tic');
}, 200);
// Cancel the timer when you are done with it
BackgroundTimer.clearInterval(intervalId); |
Something that's working for me is:
Ghetto, but it works for me for iOS and Android |
Ah great, I'll give it a try, thanks! |
@gus-delpino thank you this solved my problem too! |
This work for me using promise.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I was creating a simple timer screen for an app and was using the library to update the timer every minute as so:
And have a button element, which when pressed should stop the timer, like so:
However despite pressing the button, the timer does not stop and continues to update the app.
The text was updated successfully, but these errors were encountered: