-
Notifications
You must be signed in to change notification settings - Fork 522
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
In the release version, it crashes #629
Comments
Same issue for me on Android. Edit: Actually for me the issue only occurs from obfuscated release build. it could be the same as #614 (but I'm on version 1.7.3) |
I missed this in the new readme file: |
I had to put
in my downloadCallback method. now it works |
Can you please add any screenshot exactly where to put this line? |
@Shubham-Narkhede Let me know if the below snippet helps you: @pragma('vm:entry-point')
void downloadCallback(String id, DownloadTaskStatus status, int progress) {
// body can be anything, this is just copy-paste from my project
debugPrint(
'DatafilesScreen: downloader callback on background isolate: '
'task: $id, '
'status: $status, '
'progress $progress',
);
final send = ui.IsolateNameServer.lookupPortByName('downloader_send_port');
send?.send([id, status, progress]);
}
FlutterDownloader.registerCallback(downloadCallback); |
T
Thanks |
hi,
Everything is correct in debug and profile mode and works well, but in the release version, after hitting the download button, the program crashes and that's it!
The text was updated successfully, but these errors were encountered: