devonzuegel / ketchup-club

1 stars 1 forks source link

Native location including background location updates on iOS #10

Closed elidourado closed 8 months ago

elidourado commented 8 months ago

I've got a Native Module for location that seems to be working on iOS.

We need to fill out the publishLocation() function to update location on the server once we figure out how we want to store it.

Since the app now runs in the background, it continues to fetch friends every few seconds, which is a lot of constant data use. I think we need to turn off data fetching when the app is in the background but I haven't figured out how to do it yet. Will open a new issue to deal with it.

As part of figuring out how to deal with background fetch, I moved the theme variable over to the Zustand store, which is persistent and keeps the theme variable in one place. Will move other things over to that system as I get confidence in not breaking things.

devonzuegel commented 8 months ago

Epic! Do you plan to do more in this branch, or should I review it now and merge it once I've tested it?

elidourado commented 8 months ago

I won't do more on this branch for now. Ready for your review and testing whenever you get a chance!

devonzuegel commented 8 months ago

Got it running successfully after running brew install cocoapods! Once you rebase it onto master, I'll test it again and then merge. Thanks Eli!