Open pablog9 opened 4 years ago
But nothing happens, subcollection is never created and these logs are shown:
Those logs are normal.
Why are there sqlite references if I am using the firebase version?
Because the plugin stores ADDED geofences in its SQLite database. This is the collection of geofences you've asked the plugin to monitor.
I think you're confused about added geofences vs geofence events.
When a geofence EXIT
/ ENTER
event occurs, then the plugin will post that event to Firebase.
I have flutter_background_geolocation + background_geolocation_firebase correctly working (Android) with locations: My setup looks like this:
Locations are working as expected creating a subcollection inside current vehicle document.
Now I am trying to add geofences, adding multiple geofences at once (2 for this example: id: 1, id: 21) to a list:
But nothing happens, subcollection is never created and these logs are shown:
I/TSLocationManager( 5389): [c.t.l.data.sqlite.GeofenceDAO destroy]
I/TSLocationManager( 5389): ✅ 1
I/TSLocationManager( 5389): [c.t.l.data.sqlite.GeofenceDAO create]
I/TSLocationManager( 5389): ✅ 1
I/TSLocationManager( 5389): [c.t.l.data.sqlite.GeofenceDAO destroy]
I/TSLocationManager( 5389): ✅ 21
I/TSLocationManager( 5389): [c.t.l.data.sqlite.GeofenceDAO create]
I/TSLocationManager( 5389): ✅ 21
D/TSLocationManager( 5389): [c.t.l.g.TSGeofenceManager c] ℹ️ Persist monitored geofences: []
Why are there sqlite references if I am using the firebase version?