Closed lloydelvt closed 4 months ago
If the uuid is different, it’s a unique event.
Geofences are managed entirely by the OS. The plug-in is merely the “mailman”, delivering events reported by the OS.
We are getting geofence entry events that are firing every second while a user is dwelling within the geofence. Is there any reason you can think this is happening. We are getting approximately 1500 unique geofence entry events over a 20 minute timeframe . Is there anything that you can think of that would cause that?
Is there anything that you can think of that would cause that?
your code has a bug, repeatedly adding/removing geofences.
See wiki “Debugging” and learn to fetch the plug-in’s log database using .emailLog.
@christocracy I could easily reproduce this bug on A14 (using plugin version 4.15.3) by registering 6 geofences one by one using the bg.BackgroundGeolocation.addGeofence(geofence)
function. A few seconds after that, I've received exactly 6 Geofence Events for the geofence I was in, and I'm 100% sure, that my code called .addGeofence()
function only once for each of the 6 geofences.
@lloydelvt Try registering all geofences at once by using bg.BackgroundGeolocation.addGeofences(geofences);
. This solved the issue for me.
When reading the original bug report again, I'm not sure anymore if this is the same bug, but its worth investigating. If I need to create separate issue, notify me.
I doubt this is the same issue. I suggest you post a new issue and provide detailed logs showing these events firing, as well as the specific attributes of these geofences.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Your Environment
Plugin config: