Agontuk / react-native-geolocation-service

React native geolocation service for iOS and android
https://www.npmjs.com/package/react-native-geolocation-service
MIT License
1.61k stars 291 forks source link

Move functions accessing location into a background thread #426

Open EJohnF opened 10 months ago

EJohnF commented 10 months ago

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 commented 6 months ago

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