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

feat: allow to pass custom timer for keepalive manager #1896

Merged
merged 5 commits into from
Jul 1, 2024

Conversation

sanduluca
Copy link
Contributor

@sanduluca sanduluca commented Jun 28, 2024

I was testing the library with react native on an Android and an iOS device. I found out that the timers dont work in background on Android devices. On iOS everything seems to be ok.

With this PR we allow users to pass any timer solution. In my case I want to use https://github.com/ocetnik/react-native-background-timer which is working when app is in background too.

#1257
#1577

Copy link
Member

@robertsLando robertsLando left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR! Looks good to me! Could you add a very basic test that covers this in keep alive manager tests? Just to be sure this doesn't get broken by future updates :)

Copy link
Member

@robertsLando robertsLando left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

None yet

2 participants