BackgroundTimer.runBackgroundTimer() does not run in background
On Android, BackgroundTimer.runBackgroundTimer() pauses the task when the Activity is moved to background. This doesn't seem intuitive given that it's meant to be a background timer.
+1, any update?
+1
If you install from github instead of NPM, so you get the latest codebase with @hawkup's commit, it fixes the issue.
@mun3 @roysG @nervouscat @johntitus you can try yarn upgrade [email protected]
@ocetnik @johntitus Does this alpha fix the issue of iPhone pausing the background timer after 3 minutes in the background? I had been getting around it with a silent audio playing on repeat and being restart at each interval (30 seconds), however this has given me new issues - the timer is stopped when someone plays audio in a different app on iOS an on android the audio in another app is stopped when the silent audio is played.
@ocetnik : Thanks for the alpha version where the app did finally able to execute in background. However the timer doesnt seems to be able to stop. Please have a look at my issue https://github.com/ocetnik/react-native-background-timer/issues/111
@mun3 @roysG @nervouscat @johntitus you can try
yarn upgrade [email protected]
In this version, Does library work even the app is killed ?
In android the app spend 3 min in the background then time is never works
Please advise?
I am still getting problem in android, timer is working fine in iOS but not in android I need to work timer only when app is in background and/or device is locked, I don't mind if it still works when app is killed. But main issues is, not working timer in android when app is in background mode.