Skip to content
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

Move functions accessing location into a background thread #426

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EJohnF
Copy link

@EJohnF EJohnF commented Nov 19, 2023

Summary

Hi, in our project, which is using react-native-geolocation-service, we have noticed that some users are experiencing a problem that App hangs, and logs from bugsnag show that
if let location = self.locationManager.location { call, apparently, might block a main thread.

Screenshot 2023-11-19 at 15 17 16

As a possible solution, the decision was to try to move these call into a background flow.

Test Plan

We are going to release a version with patched version of this lib, and I'll comment later on here was an issue resolved or not.

We couldn't reproduce it locally anyway, so only relying on reports from bug tracking system.

@holubiev
Copy link

holubiev commented Apr 5, 2024

Hello. Any updates on this? Did it help to resolve hanging?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants