Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a trick to do background tasks with react native expo?

I know expo cannot execute code when the app is in the background but i really need to find a alternative. I need to update my redux state when i receive a push notification in the background.

Is there any additional library to help me to do such things ?

like image 421
John doe Avatar asked Aug 31 '25 16:08

John doe


1 Answers

As of Apr 2019, Expo does allow some background tasks to be done, using their TaskManager. Two examples of built-in backgrounds task are:

  • Background geolocation (including geofencing): see docs.
  • Background fetch: see docs.
like image 63
jeanpaul62 Avatar answered Sep 03 '25 00:09

jeanpaul62