react-native-background-timer
react-native-background-timer copied to clipboard
Emit event periodically (even when app is in the background)
I needed to periodically do a fetch request, even if in background. I was thinking of using `react-native-background-timer`. I was curious though, what would be the tradeoffs between using this...
I'm testing this module by setting up a timer to log the time every 10 minutes and running it for extended periods. When I check the times logged, it is...
Hey @ocetnik - I'm looking into the idea of implementing a PR for your lib that would implement a Date based timer to avoid drift (instead of relying on the...
This code works in the background as long as the timeout value is not smaller than 2000ms: ``` componentWillReceiveProps(newProps){ if(newProps.clockVisible != this.props.clockVisible){ if(newProps.clockVisible){ this.setState({notificationShown: false, elapsedTime: 0}); BackgroundTimer.runBackgroundTimer(this.handleTick,2000); }else{ BackgroundTimer.stopBackgroundTimer();...
It was a complete waste of time. I tried this plugin and configured everything but when app in background mode it stop working. Whats the solution?
Hi @ocetnik, I've been trying to use this library but it not working when the app put on background. I've followed all installation guide and cross platform usage but it...
Hi, Instead of using export as `export default new BackgroundTimer()` in index.js, if it shall be done like `export default BackgroundTimer()`, only one global instance of BackgroundTimer shall be created...
Hello! I was really excited that a package like this exists, because RN doesn't have support for background timers. However, once I used it, I noticed something really weird: after...
Good afternoon. I have a sound application who works with a timer. When i to slide to background and open another application for example iMusic my timer stopped. Any body...