API for running background tasks. Could be scheduled, run on an interval or event driven.
Yes! This is EXACTLY what I need!
I'm surprised this doesn't already exist. Seems like a core part of building a mobile app.
@Josh Close: I've heard infrastructure for this is currently being worked on, as it's needed for other features like background location tracking etc
In vanilla RN there's background JS for android. Is it even possible for iOS?
This function is very important to me!!!
There are a few react-native packages that support this but you have to detach your app :( +1
I really really really need this like... yesterday :/ any release date for this?
Im a little bit confused on this. Does it mean that if an expo app on a user's phone is closed, and someone sends a notification to him, it wont appear on the phone?
@JUAN CARLOS CANCELA: no: push notifications are displayed like you would expect
@Sébastien Lorber: Did you mean to put a comma after the "no"?
@Sergiu Gabura: yes I edited my answer
@JUAN CARLOS CANCELA: thankfully this is the one thing that works. we are able to notify the user they will have to re-auth at the end of each day if they do not open the app again soon, but not send an api call to cycle the auth token. this is still quite frustrating for the user.
we'd love to allow them to set a pin and have it run oAuth token cycling, transparent to the user. then they would only get nagged if they don't set a pin AND don't disable the notice.
edit: setTimeout() seemed to work as expected on Android devices for hourly code execution (ie: is the cached expiry time soon?), but this failed on iOS. also it didn't seem to be able to update the data in the background even if we could check it.
@Jeremy Bradbury: Thanks for replay, good to know!
Is this the same thing as being able to create a music player app that continues to run in the background?
I know you guys don't have timelines, but is it possible to roughly estimate when this feature can go to 'In Progress' state? This feature is crucial for my application and at this point I need to either eject or know how much roughly I need to wait. Thank you 🙌
+ 1 for this one - this would be really helpful
Yesss, please! That would be a major step forward for Expo!
This is a "must" for my app
You could always just use this: https://github.com/jamesisaac/react-native-background-task
@Clayton Barnard: You would have to Eject from expo to use that.
It doesn't work in ExpoKit either