Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on Android #12

Closed
PoppyAnc opened this issue Nov 16, 2018 · 5 comments
Closed

Not working on Android #12

PoppyAnc opened this issue Nov 16, 2018 · 5 comments

Comments

@PoppyAnc
Copy link

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.

@andreus3
Copy link

I solved it using react-native-background-timer instead of the regular timer.

@jkomyno
Copy link
Owner

jkomyno commented Apr 5, 2019

@andreus3 Would it be useful if I provided a function to call to set the timer, that defaults to the current setTimeout?

@zach-luman
Copy link

No solution for this yet?

@jkomyno
Copy link
Owner

jkomyno commented Jul 26, 2019

@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.

@jkomyno
Copy link
Owner

jkomyno commented Oct 11, 2019

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.

@jkomyno jkomyno closed this as completed Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants