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

[Help Wanted]: Geofence Event Fails on Real Movement but Works with Mock Location (Lockito) #2281

Open
2 of 3 tasks
nikunjbacancy opened this issue Feb 21, 2025 · 0 comments

Comments

@nikunjbacancy
Copy link

Required Reading

  • Confirmed

Plugin Version

4.18.3

Mobile operating-system(s)

  • iOS
  • Android

What do you require assistance about?

Geofence ENTER and EXIT events trigger perfectly with the Lockito app, but during real movement, they fail to trigger. Instead, I only see the "Location Service Activated" notification.

[Optional] Plugin Code and/or Config

await BackgroundGeolocation.ready({
      transistorAuthorizationToken: token,
      reset: true,
      desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
      autoSync: true,
      url: "https://tracker.transistorsoft.com/api/locations",
      distanceFilter: 20,
      stationaryRadius: 20,
      locationUpdateInterval:5000,
      fastestLocationUpdateInterval:5000,
      debug: false,
      stopTimeout: 15,
      startOnBoot: true,
      stopOnTerminate: false,
      enableHeadless: true,
      preventSuspend: true,
      allowIdenticalLocations: false,
      maxDaysToPersist: 2,
      foregroundService: isOnSite,
      locationAuthorizationRequest: 'Always',
      geofenceInitialTriggerEntry: false,
      geofenceModeHighAccuracy: isOnSite,
      notification: {
        title: "Sitekey Activated...",
        text: "Sitekey is running in the background.",
      }
    },
      (state) => {
            await BackgroundGeolocation.start();
      }

[Optional] Relevant log output

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

1 participant