transistorsoft / react-native-background-geolocation

Sophisticated, battery-conscious background-geolocation with motion-detection
http://shop.transistorsoft.com/pages/react-native-background-geolocation
MIT License
2.66k stars 426 forks source link

App Hanging #2211

Closed mcottingham closed 17 hours ago

mcottingham commented 17 hours ago

Your Environment


## Expected Behavior
App does not hang and location tracking is consistent with the Philosophy of Operation

## Actual Behavior
Getting "App Hanging" exceptions in Sentry:

BeSafeWorkAlone 0x100f366dc -[TSLocationManager ready] BeSafeWorkAlone 0x100664408 __49-[RNBackgroundGeolocation ready:success:failure:]_block_invoke (RNBackgroundGeolocation.m:187) ... BeSafeWorkAlone 0x100f3f25c -[TSLocationManager locationManager:didFailWithError:]



## Steps to Reproduce
1.  Start location tracking

</details>
christocracy commented 17 hours ago

What is an "App Hanging exception"?

mcottingham commented 17 hours ago

image

I don't get a whole lot more context than this. Looks like perhaps TSLocationManager is causing the UI to hang for over 2 seconds?

christocracy commented 17 hours ago

Let me know how to reproduce.

mcottingham commented 17 hours ago

I'll just close the ticket. I thought maybe you would have seen this before.

christocracy commented 17 hours ago

Never heard of it.

That method does little more than fire a LocationError event, which iterates over an NSArray of callback-functions and executing them.