You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flutter background services while uploading file to api ,I want to update the progress using streamcontroller to update the UI, But it's not working.how can we achieve this ?
#472
Open
ramaatamai opened this issue
Aug 21, 2024
· 2 comments
// this line to listen to progress value in ui :
FileDownloaderService.flutterBgInstance.on('refresh')
..listen((event) {
if (event!['0'] == 100) {
emit(ProductDownloaded(message: "DownLoad FInished"));
} else {
emit(ProductDownLoading(productId: productData.id, progress: (event['0'] as double).toInt()));
}
});
When i tried to start the service ,I am facing "Service already running, using existing service" Issue and its not invoke service.invoke('startTaskWithJson', json
No description provided.
The text was updated successfully, but these errors were encountered: