-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is Background Processing for Expo Possible? #187
Comments
Attempting to do the same with the config plugin below. Will report back whether I'm successful or not.
|
Any luck @jhbarnett jhbarnett?? |
Yeah @brianfoody it's working 90% great. We're still trying to pinpoint an issue with background delivery when the app is in a killed state, but near as we can tell this plugin is making all the right mods. |
For anyone else that stumbles upon this, here are the steps to integrate in your own project. I'll explore a PR here once our app has shipped. |
@jhbarnett How did everything work out in the end? |
@brianfoody @AhmadHoranieh Y'all had any success with this? |
For anyone who has build issue with eas build with the above config. Just do
You will be fine. |
Update: I cannot make the above code work, even I updated the |
Has anyone had success with this? |
I was able to query the health records in a location-based task, but the problem is that the health records are encrypted when the device is locked. An ideal solution would allow for a bridge to be set up within Expo that allows us to subscribe to new workouts, but I don't think there is a way to do this, currently. |
@jclif @jhbarnett Any success with this? It would be great to be able to fetch the HK data in the background :) |
which modifies the AppDelegate.mm to the following:
I'm still testing if this works, but I think I'm in the right path! |
@samuthekid any success with fetching HK data in background? |
@rickyhonline I didn't leave any feedback, but yeah! It works very well! Right now, I'm using patch-package for this, so here's my patch:
|
I think the owners could make a little update with this new version of the expo plugin ;) |
Does anyone have experience with this implementation? Does it work for your managed expo app? |
What's the delay like for receiving data from the background listeners? I.e. how long it takes before the callback is called and data is received |
I'm using it in a prod app and it's working great! I build my app in EAS and I don't have any problems
There's no delay... you just get the values when the iOS triggers a broadcast of the new values. From my tests, it usually triggers when the user unlocks the phone a couple minutes after new values have been added to the Health app |
I am interested in implementing a background listener for steps and active calories burnt as it provides a better user experience in my Expo application (preferably without ejection). Is it possible?
The text was updated successfully, but these errors were encountered: