react-native-background-timer
react-native-background-timer copied to clipboard
Emit event periodically (even when app is in the background)
Hi, Is it possible to run 2 or more instances of background timer at the same time in same file? Please guide
Hello! I checked all the other issues related with this and the problem still persists in iOS: **componentDidMount** if (Platform.OS === 'android') { this.interval = BackgroundTimer.setInterval(() => { this.recurrentTask(); },...
Hi, I've tried to use the timer in a simple project: with the iOS simulator it works ok, but when I've tried to build it with react-native run-android, I've got...
I want to make an application exactly like the title. Every 5 or 15 minutes in the background, I will send a request to the api which I made and...
android 4.1 device "react-native": "0.48.1", "react-native-background-timer": "1.2.0", const EventEmitter = Platform.select({ ios: () => NativeAppEventEmitter, android: () => DeviceEventEmitter, })(); BackgroundTimer.start(5000); EventEmitter.addListener('backgroundTimer', () => { // this will be executed...
On iOS 14.3, BackgroundTimer.runBackgroundTimer only run 30 second, the same as setInterval. Does this work as design ? ``` BackgroundTimer.runBackgroundTimer(()=>{ console.log("BackgroundTimer: Hello world. Now is: ", (new Date()).toLocaleString()); },2000); setInterval(()=>{...
I am trying to build the app in react native which plays sound in every 8 sec now when I install the app in debug mode locally sound plays in...
Hello, I have a problem with your lib. When I run : `./gradlew build` CMD returns: > Task :react-native-background-timer:lint FAILED > Ran lint on variant release: 3 issues found >...
I am continually getting this error thrown and it stops the background timer from working on Android. It works no issues on iOS however. I am not using the setTimeout...
Hi Team, I have created an app in react native, and whenever my app goes in the background, it is getting killed by the OS very frequently, and due to...