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

Duplication of results in Uploader.result when the event finished with Task ID 3 or 4 #229

Open
ramisadek opened this issue May 26, 2022 · 2 comments

Comments

@ramisadek
Copy link

I'm trying to execute some piece of code when the uploader finishes its uploading but it seems it is duplicates due to multi notifications from the plugin that the task has been finished for 4-20 times until it stops at some random point

@romawizard
Copy link

It's because the plugin uses CachingStreamHandler. It cached all taskId and send it to flutter when a new event came. I don't really understand the purpose of this cache.
Maybe the author can shed the light on this?

@davidbrenner
Copy link

@ramisadek - did you find a workaround for this? Do you just track on the flutter side that the completion for that task has already been called?

I'm seeing what I believe to be this behavior on android devices, but it happens randomly.

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

3 participants