react-native-geolocation-service icon indicating copy to clipboard operation
react-native-geolocation-service copied to clipboard

Move functions accessing location into a background thread

Open EJohnF opened this issue 8 months ago • 1 comments

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.

EJohnF avatar Nov 19 '23 14:11 EJohnF

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

holubiev avatar Apr 05 '24 12:04 holubiev