Skip to content
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

Stream function issue its not running in the background #347

Open
sheikhsuleman123 opened this issue Aug 18, 2023 · 1 comment
Open

Stream function issue its not running in the background #347

sheikhsuleman123 opened this issue Aug 18, 2023 · 1 comment

Comments

@sheikhsuleman123
Copy link

when i use the flutter_background_services pkg to keep streaming this function after the app is closed this is not worked to says
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Bad state: Stream has already been listened to.
E/flutter (14733): #0 _StreamController._subscribe (dart:async/stream_controller.dart:678:7)
E/flutter (14733): #1 _ControllerStream._createSubscription (dart:async/stream_controller.dart:828:19)
E/flutter (14733): #2 _StreamImpl.listen (dart:async/stream_impl.dart:471:9)
E/flutter (14733): #3 startFenceTrack (package:geofencing_app/screens/example_code.dart:56:100)
E/flutter (14733):

the function you want to run in the background is all-ready streaming
how can I keep running this function also in the background

@ekasetiawans
Copy link
Owner

It seems not flutter_background_service issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants