background tasks need to be performed for syncing of data


#1

Hey,
I was wondering if there’s anything that could trigger an event in the background.
I’ve created my project with CRNA(I cannot use native code until I detach from expo.)
In my case, i need the data to be sent to firestore database at a particular time.
I’m able to do that on a click event for now. but I need that to trigger by itself.
can anyone help me with this?

https://forums.expo.io/t/is-there-a-way-of-implementing-periodic-background-tasks/2153
https://expo.canny.io/feature-requests/p/background-tasks-support
https://forums.expo.io/t/is-there-any-dependency-for-expo-app-developer-to-run-background-service-task/8358
I’ve read some expo issues regarding this and saw that it was one of the major things to be build. can I know how long would it take for that to work?
thanks in advance
:slight_smile:


#2

Hey @hmadugula,

We are currently and actively working on background task support, but I unfortunately can not provide an exact timeline on when it will be added into the SDK. It seems likely that it will be somewhere in the near-term though!

Cheers,

Adam


#3

thanks @adamjnav, are there any other possibilities that we could achieve that functionality for the time being. could you please help me with that?
thanks


#4

Hey @hmadugula,

The only way you’ll be able to implement background tasks in the meantime would be to detach: https://docs.expo.io/versions/v29.0.0/expokit/detach

Cheers,

Adam


closed #5

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.