flutter_uploader
flutter_uploader copied to clipboard
Duplication of results in Uploader.result when the event finished with Task ID 3 or 4
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
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?
@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.