react-native-background-task icon indicating copy to clipboard operation
react-native-background-task copied to clipboard

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

Open ghost opened this issue 7 years ago • 5 comments

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

ghost avatar Nov 03 '17 20:11 ghost

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

drorhayun avatar Nov 12 '17 21:11 drorhayun

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? )

ayazzali avatar Apr 13 '18 14:04 ayazzali

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

ViktoriaShelestenko avatar Apr 13 '18 17:04 ViktoriaShelestenko

Facing the same issue.

meniteesh avatar Sep 21 '18 05:09 meniteesh

Facing the same issue.

Zilleabbas10 avatar Jan 23 '20 12:01 Zilleabbas10