Not working on Android
PoppyAnc opened this issue · 5 comments
Even though on IOS works ok, on android I get "Setting a timer for a long period of time".. warning.
And even if I make the timeForInactivity to 1 minute (which doesn't produce the error), it never triggers the onAction method with parameter false.
I solved it using react-native-background-timer instead of the regular timer.
@andreus3 Would it be useful if I provided a function to call to set the timer, that defaults to the current setTimeout?
No solution for this yet?
@zach-luman Please look at the project advancement, I'm performing a major refactor of the library in order to get a better API and support for custom timers like react-native-background-timer
.
Hi, please check out the new version. You need to provide a custom timer to the library. In your case, just use any native background timer that works on Android too.