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

App Hanging #2211

Closed
mcottingham opened this issue Nov 21, 2024 · 5 comments
Closed

App Hanging #2211

mcottingham opened this issue Nov 21, 2024 · 5 comments

Comments

@mcottingham
Copy link

Your Environment

  • Plugin version: 4.17.5
  • Platform: iOS
  • OS version: 15.8.3
  • Device manufacturer / model: iPhone 6s
  • React Native version (react-native -v): 0.74.5
  • Plugin config
        BackgroundGeolocation.ready({
            //Debug
            debug: false,
            logLevel: BackgroundGeolocation.LOG_LEVEL_ERROR,

            //GeoLocation
            desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
            preventSuspend: true,
            stationaryRadius: 25,
            heartbeatInterval: 60,
            showsBackgroundLocationIndicator: true,

            //Application
            startOnBoot: true,
            stopOnTerminate: false,
            enableHeadless: true,

            //Notification
            foregroundService: true,
            notification: {
                title: "Be Safe - On Shift",
                text: "Be Safe is monitoring your location, keeping you safe.",
                color: theme.palette.green,
                sticky: true,
            },

            locationAuthorizationRequest: "Always",
            backgroundPermissionRationale: {
                title: "Allow Be Safe - Work Alone to access this device's location in the background?",
                message: "In order to track your activity in the background, please enable Allow all the time location permission",
                positiveAction: "Change to Allow all the time",
                negativeAction: "Cancel",
            }
        })

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
@christocracy
Copy link
Member

What is an "App Hanging exception"?

@mcottingham
Copy link
Author

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
Copy link
Member

Let me know how to reproduce.

@mcottingham
Copy link
Author

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

@christocracy
Copy link
Member

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.

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

No branches or pull requests

2 participants