flutter_background_geolocation
flutter_background_geolocation copied to clipboard
headless is not working in debug mode
I was trying to save the location data but it not saving in Firebase database
Here are code headless event
case bg.Event.HEARTBEAT: bg.HeartbeatEvent event = headlessEvent.event; print('- HeartbeatEvent: $event'); Firebase.initializeApp(); FirebaseFirestore.instance.collection("testingTracking").add({ "data": { "longitude": event.location!.coords.longitude, "latitude": event.location!.coords.latitude } }); break;
not working please help me out
The issue template is not optional, it's required,
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.