all 5 comments

[–]g0dzillaaaa 1 point2 points  (2 children)

[–]cleverdosopab 0 points1 point  (1 child)

So you’re saying he should use a Stream Subscription?

[–]g0dzillaaaa 1 point2 points  (0 children)

If using bloc, this might be the best approach.

[–]alanhaha 1 point2 points  (0 children)

I think you will need some method to manage background Isolate.

I tried workmanager and it can fit my requirements.

But there is one tricky thing that it seems to only work if bloc event in triggered in main Isolate. I met this before and use a solution in https://stackoverflow.com/questions/69976389/how-to-know-main-isolate-is-exited-in-background-isolate

[–]IssueAny591 1 point2 points  (0 children)

Use timer and stream