Closed alekseifm closed 3 years ago
I still couldn't solve it, here are the codes to reproduce the behaviour. I tried to simplify with some mocked data, but I believe that any integration with Firestore with Streambuilder would return null after listening to location data. If anyone has any idea of what could be causing this please share here, I am really stuck since no error or warn is shown. Thanks in advance!
I believe what is causing this behaviour is a depended package background_locator
. The same issue is related here https://github.com/rekab-app/background_locator/issues/167.
Device / Emulator and OS
Please complete the following information for each phone and/or emulator you're experiencing this bug on:
Describe the bug
I'm having a weird behaviour using StreamBuilder with Firestore after using carp_background_location. All collections from Firestore are streamed correctly at beginning of the run, but when I uses the background_location, all the StreamBuilders stop working (returns null for the snapshot data). Normal behaviour just comes back when I close the app and run main.dart again.
To Reproduce
carp_background_location
like on theexample/lib/main.dart
on a specific screenExpected behavior
carp_background_location
Flutter doctor
I am relative new to Flutter, don't know if I am losing something obvious here. and thanks for the amazing package!