flutter_downloader icon indicating copy to clipboard operation
flutter_downloader copied to clipboard

Cant download in release ios

Open HassanShaban opened this issue 2 years ago • 7 comments

Cant download in release ios when i in debug mode download work successfully but in release mode dont work

HassanShaban avatar Jan 16 '23 14:01 HassanShaban

Same problem here!

tihhmachado avatar Jan 17 '23 23:01 tihhmachado

@pragma('vm:entry-point') add this annotation above callback :)

HassanShaban avatar Jan 18 '23 07:01 HassanShaban

Hello @HassanShaban,

this is working for me! But I needed use this solution too https://stackoverflow.com/a/74984125. Thank u so much!

tihhmachado avatar Jan 24 '23 12:01 tihhmachado

@HassanShaban which callback do you mean?

eeoom avatar Feb 09 '23 09:02 eeoom

@pragma('vm:entry-point') static void downloadCallback( String id, DownloadTaskStatus 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]); }

HassanShaban avatar Feb 09 '23 09:02 HassanShaban

Same issue, any solution?

abdullah432 avatar May 17 '23 13:05 abdullah432

@pragma('vm:entry-point') add this annotation above callback :)

This solution worked at iOS release too.

abdullah432 avatar May 17 '23 13:05 abdullah432