jamesisaac / react-native-background-task

Periodic background tasks for React Native apps, cross-platform (iOS and Android), which run even when the app is closed.
MIT License
1.11k stars 110 forks source link

Background task not working the app is killed (not in background / foreground) #17

Open ghost opened 7 years ago

ghost commented 7 years ago

My Platform is Android. The task gets executed when the app is in background, but when i forcefully kill the app that is the app is now neither in background nor in foreground then the task doesn't gets executed.

Please help

drorhayun commented 7 years ago

It happens to me too.. I think it happens because the background service and the app are running on the same thread..

ayazzali commented 6 years ago

if i dont kill app forcefully How long task will be executed. a few hours? Does android kill task when memory is full? (how can i get pushes from facebook/vk/someSocialNetwork's client? )

ViktoriaShelestenko commented 6 years ago

@ayazzali you get notifications from backend, thats why they works for you.

How often your background task work on real device? Did you test? My time interval about an hour.. (but maybe more, i just did not wait so much time)

meniteesh commented 6 years ago

Facing the same issue.

Zilleabbas10 commented 4 years ago

Facing the same issue.