-
Notifications
You must be signed in to change notification settings - Fork 257
[Bug]: EXIT event is not triggered by startGeofences() in Android #1477
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
Comments
Geofence events can be delayed in geofence-only mode (ie: See API docs |
It's a well-known with Android geofences among the entire Android development ecosystem, where they sometimes fail to fire or are delay if location-services is not active. |
Hi, |
It shouldn’t make a difference.
Unknown. |
Hello @christocracy, I have another problem, but it's not so big that I need to create a new ticket. On iOS, I enter the zone and receive the ENTER event. Then I close the app in the background and reopen it. The EXIT event is generated immediately, even if I'm still in the polygon. In the logs, I see that the plugin keeps throwing this error after calling ready(). do you have any ideas? flutter: [ready] - [State enabled: true, isMoving: false, trackingMode: 0, desiredAccuracy: -1, distanceFilter: 10.0, odometer: 0.0, schedulerEnabled: false, foregroundService: null] [Geofencing] pointInPolygon failed to find vertices for TestZone I don't have this issue on Android. I don't look at the log, but the event isn't generated in the same test case. |
Send me entire log file from |
I attached the log file. By the way, this only happens on the real device. I'm testing on the iPhone 14 Pro. I don't have this issue in the simulator. |
Your log-file spans a period of ~7 minutes and contains no reference to the word " The plugin can store up to three days worth of logs. Go do your testing to reproduce your reported issue and provide a log file containing those errors. |
Forget the name TestZone. I just renamed it to hide information. The actual error logs have the same name as the log file. [Geofencing] pointInPolygon failed to find vertices for 14§§§Home |
I see no reference to the text |
Post a new issue. |
Uh oh!
There was an error while loading. Please reload this page.
Required Reading
Plugin Version
4.16.9
Flutter Doctor
Mobile operating-system(s)
Device Manufacturer(s) and Model(s)
moto g7 play (XT1952-1)
Device operating-systems(s)
Android 10
What happened?
Hi @christocracy ,
I have two issues with geofence mode on Android. Everything works fine on iOS.
When I start the service with
bg.BackgroundGeolocation.start();
Here are the logs for two cases.
start().txt
startGeofences().txt
Note: I use Lockito to simulate the GPS position.
Thanks for your help!
Plugin Code and/or Config
Relevant log output
The text was updated successfully, but these errors were encountered: