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
Everytime I try to download using flutter downloader package.
Always this error shows up in the condole.
"D/DownloadWorker( 2768): Update too frequently!!!!, but it is the final update, we should sleep a second to ensure the update call can be processed
"
This is how my downloadCallBack function looks like.
@pragma('vm:entry-point')
static void downloadCallback(String id, int status, int progress) {
print(
'Background Isolate Callback: task ($id) is in status ($status) and process ($progress)');
final SendPort? send =
IsolateNameServer.lookupPortByName('downloader_send_port');
send?.send([id, status, progress]);
}
and this function, I have called it in the initState().
Everytime I try to download using flutter downloader package.
Always this error shows up in the condole.
"D/DownloadWorker( 2768): Update too frequently!!!!, but it is the final update, we should sleep a second to ensure the update call can be processed
"
This is how my downloadCallBack function looks like.
@pragma('vm:entry-point')
static void downloadCallback(String id, int status, int progress) {
print(
'Background Isolate Callback: task ($id) is in status ($status) and process ($progress)');
final SendPort? send =
IsolateNameServer.lookupPortByName('downloader_send_port');
send?.send([id, status, progress]);
}
and this function, I have called it in the initState().
void _bindBackgroundIsolate() {
IsolateNameServer.registerPortWithName(
port.sendPort, 'downloader_send_port');
port.listen((dynamic data) {
// String id = data[0];
status = data[1];
progress = data[2];
setState(() {});
});
}
The text was updated successfully, but these errors were encountered: