react-native-background-timer icon indicating copy to clipboard operation
react-native-background-timer copied to clipboard

stoped when wifi tun off

Open zoofei opened this issue 8 years ago • 3 comments

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 every 5 seconds // even when app is the the background console.log('toe',ws.readyState); //stoped when wifi tun off }); running application ,the background timer task run success, then return the app ,the app run back,timer task run ok in this time, but the timer task stopped when i change the wifi status , so my problem is the timer task stopped when the app run back and change the network status。

zoofei avatar Sep 22 '17 06:09 zoofei

you are not debugging through wifi ?

jussirantala avatar Nov 16 '17 12:11 jussirantala

Same problem here, timer crashes when you change the wifi while in the background.

steve-else avatar Jan 24 '18 20:01 steve-else

The same thing has been happening here, have you had a solution?

autimio-brito-gaivota avatar Aug 23 '21 19:08 autimio-brito-gaivota