Rapsssito / react-native-background-actions

React Native background service library for running background tasks forever in Android & iOS.
MIT License
819 stars 117 forks source link

Background task gets closed automatically #176

Closed myzow closed 1 year ago

myzow commented 1 year ago

Hello i've used this package to send the data from app to server it sends data to the server even after killing the app it's working fine but after some hours it gets closed can you please help me if this is a package issue or some restrictions are placed here from android. Thanks

devmadhavvv commented 1 year ago

Yeah I'm facing the same issue, and I'm using Android 13 and it kills the background task in 5 minute @myzow

SurajMohanty02 commented 1 year ago

Same issue i'm also facing . Please help

Rapsssito commented 1 year ago

@myzow, @carbseater and @SurajMohanty02, your OS' battery management might be closing the background tasks. If you want to avoid this, you might have to set up an exception for unrestricted battery usage for your app.

CedricBrandt commented 7 months ago

Mine gets closed - even though i have unrestricted battery usage enabled - after a few hours. When i go to sleep and wake up in the morning the apps background task is always inactive and needs to be restarted.