Skip to content
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

Downloads don't progress past enqueued. #740

Open
DeanPack opened this issue Oct 24, 2022 · 7 comments
Open

Downloads don't progress past enqueued. #740

DeanPack opened this issue Oct 24, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@DeanPack
Copy link

I'm trying to download files from my webserver, there is required authorization, so I'm sending an authorization header, like so

    task.taskId = await FlutterDownloader.enqueue(
      url: task.link!,
      headers: {'authorization': '[Bearer ${store.state.auth.accessToken}]'},
      savedDir: _localPath,
      saveInPublicStorage: true,
    );

I have my background isolate running and getting updates, but it just gets the queued update, and nothing else, despite however long I wait.

To reproduce the bug, Just try to download a file and have your background isolate watching. I imagine this might have something to do with authorization, but if that is the case, I would expect some kind of error reporting so I'm not just shooting in the dark like I currently am.

Expected behavior

I expect the download to start from the queue instead of just sitting there with the queued status indefinitely.

Screenshots

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Device information:

Iphone SE 3rd generation 16.0 emulator

Additional context

@DeanPack DeanPack added the bug Something isn't working label Oct 24, 2022
@brunoda6
Copy link

Hi I have the same problem but mine only doesn’t work on iOS realese mode, have you found out the problem?

thanks

@daverin
Copy link

daverin commented Nov 14, 2022

@brunoda6 I just hit this issue now. Trying to trace my steps back to see what triggered this.

@daverin
Copy link

daverin commented Nov 15, 2022

#629 solved my issue.

Here's a nice explanation: firebase/flutterfire#9446 (comment)

@julianfalcionelli
Copy link

julianfalcionelli commented Nov 25, 2022

Same as for @brunoda6 , on the latest Flutter version (3.3.7) the downloads are not working in iOS Release Mode.

Update: After adding the annotation @daverin mentioned everything is working fine.

@markst
Copy link
Contributor

markst commented Feb 9, 2023

Just tested Flutter version (3.3.7) and appears to still work without 'vm:entry-point'. Not sure when this issue was introduced.

@markst
Copy link
Contributor

markst commented Feb 24, 2023

Update: Version 1.10.2 does seem to resolve issue for me:

[✓] Flutter (Channel beta, 3.8.0-10.1.pre, on macOS 13.0.1 22A400 darwin-arm64, locale en-AU)

@markst
Copy link
Contributor

markst commented Feb 24, 2023

ah my issue seems to be related to: #804
whether or not @DeanPack is the same issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants