You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've implemented geofencing in my app where I want to check whether user is entered/exited from given radius. Its working fine but taking time to give status and if radius is less than 50 meters, it's not giving an update even if I walk 70-80 meters.
Here is the video:
I've printed log on ENTER/EXIT but it is not occurring on EXIT as well as on ENTER (Second time)
EXITing but onGeofenceChange is not getting called:
Radius is 35 meters
[✓] Flutter (Channel stable, 3.24.0, on macOS 15.0 24A335 darwin-arm64, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] Connected device (4 available)
! Error: Browsing on the local area network for Ruchit’s iPhone. Ensure the device is unlocked and attached with a cable or associated with
the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
Plugin config:
await bg.BackgroundGeolocation.ready(
bg.Config(
reset: true,
geofenceInitialTriggerEntry: true,
geofenceModeHighAccuracy: true,
desiredAccuracy: bg.Config.DESIRED_ACCURACY_HIGH,
distanceFilter: 10,
enableHeadless: true,
notification: bg.Notification(
title: "TrackOn",
text: "Getting Location",
),
stopOnTerminate: false,
startOnBoot: true,
debug: false,
locationAuthorizationRequest: 'Always',
backgroundPermissionRationale: bg.PermissionRationale(
title:
"Allow {applicationName} to access this device's location even when the app is closed or not in use.",
message:
"This application gathers location information so that we can determine the user's activity level and adjust their health insurance benefits appropriately.",
positiveAction: 'Change to "{backgroundPermissionOptionLabel}"',
negativeAction: 'Cancel',
),
logLevel: bg.Config.LOG_LEVEL_VERBOSE,
),
).then((bg.State state) async {
debugPrint('[ready] ${state.toMap()}');
if (!state.enabled) {
await bg.BackgroundGeolocation.start();
}
}).catchError((error) {
debugPrint('[ready] ERROR: $error');
});
Expected Behavior
If should give the update on change of Geofence status whether it is ENTERed or EXITed.
Actual Behavior
It is only giving an update if we go more ahead then border line of Geofence.
Steps to Reproduce
Add Geofences with radius less than 100.
Checking by Walking
Context
I want to cover my office area through geofence so I can check whether any user is entered/exited into/from the office.
The text was updated successfully, but these errors were encountered:
I've implemented geofencing in my app where I want to check whether user is entered/exited from given radius. Its working fine but taking time to give status and if radius is less than 50 meters, it's not giving an update even if I walk 70-80 meters.
Here is the video:
I've printed log on ENTER/EXIT but it is not occurring on EXIT as well as on ENTER (Second time)
Radius is 35 meters
whatsapp-video-2024-10-01-at-51713-pm-1_qDc0vido.mp4
Radius is 35 meters
whatsapp-video-2024-10-01-at-51713-pm_wIvqBYZM.mp4
Your Environment
flutter doctor
):Expected Behavior
If should give the update on change of Geofence status whether it is ENTERed or EXITed.
Actual Behavior
It is only giving an update if we go more ahead then border line of Geofence.
Steps to Reproduce
Context
I want to cover my office area through geofence so I can check whether any user is entered/exited into/from the office.
The text was updated successfully, but these errors were encountered: