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

When the app is downloading the task, I close the app and then re-open the app #97

Closed
dmlzj opened this issue Aug 9, 2019 · 12 comments
Closed

Comments

@dmlzj
Copy link

dmlzj commented Aug 9, 2019

When the app is downloading the task, I close the app and then re-open the app. The task status is still being downloaded. Actually, there is no download. I clicked the pause button and the task did not respond.

hk8os-njfcv

@dannyCaiHaoming
Copy link

dannyCaiHaoming commented Aug 9, 2019

I also have this problem, it seems that flutter_downloader didn't save the progress when app quit, so when I came in again, the task was still in the queue and could not be resumed.And you can't cancel or remove this task.

@hnvn
Copy link
Member

hnvn commented Aug 9, 2019

What do you mean about quit action? Do you press home button or terminate the application from background list?

@dannyCaiHaoming
Copy link

What do you mean about quit action? Do you press home button or terminate the application from background list?

I'm writing code in vscode,so I can just press F5 to exit the program.But this is the equivalent of killing apps in iOS by sliding them through the app list.

I just tried to kill the program in the simulator and found that the problem was not reproduced.

@dannyCaiHaoming
Copy link

What do you mean about quit action? Do you press home button or terminate the application from background list?

When I do this download function in iOS, even after the forced exit of the app in the middle of the download, the next time I come in, I can still retrieve the previous progress and continue to download. I wonder if this can be done?

@dmlzj
Copy link
Author

dmlzj commented Aug 9, 2019

What do you mean about quit action? Do you press home button or terminate the application from background list?

I'm writing code in vscode,so I can just press F5 to exit the program.But this is the equivalent of killing apps in iOS by sliding them through the app list.

I just tried to kill the program in the simulator and found that the problem was not reproduced.

I am using vscode killed the progress too, so I have this problem.

@hnvn
Copy link
Member

hnvn commented Aug 9, 2019

I'm writing code in vscode,so I can just press F5 to exit the program.But this is the equivalent of killing apps in iOS by sliding them through the app list.

I just tried to kill the program in the simulator and found that the problem was not reproduced.

Currently, my iOS codes will set all unfinished tasks to canceled status when the application is terminated (by OS or users). It happens in applicationWillTerminate: function. I am not sure but I think that killing the application from vscode doesn't do the same as iOS system does.

@dannyCaiHaoming
Copy link

I'm writing code in vscode,so I can just press F5 to exit the program.But this is the equivalent of killing apps in iOS by sliding them through the app list.
I just tried to kill the program in the simulator and found that the problem was not reproduced.

Currently, my iOS codes will set all unfinished tasks to canceled status when the application is terminated (by OS or users). It happens in applicationWillTerminate: function. I am not sure but I think that killing the application from vscode doesn't do the same as iOS system does.

I think so too. So according to your design, exiting the app does not cause other problems at present. But I was wondering if you would update the status of the task before the app exits.

@dmlzj
Copy link
Author

dmlzj commented Aug 9, 2019

I'm writing code in vscode,so I can just press F5 to exit the program.But this is the equivalent of killing apps in iOS by sliding them through the app list.
I just tried to kill the program in the simulator and found that the problem was not reproduced.

Currently, my iOS codes will set all unfinished tasks to canceled status when the application is terminated (by OS or users). It happens in applicationWillTerminate: function. I am not sure but I think that killing the application from vscode doesn't do the same as iOS system does.

Yes, so the problem caused by ending the app process via vscode can be ignored.

@hnvn
Copy link
Member

hnvn commented Oct 16, 2019

fixed in v1.3.0

@hnvn hnvn closed this as completed Oct 16, 2019
@1232209
Copy link

1232209 commented Mar 25, 2021

I'm writing code in vscode,so I can just press F5 to exit the program.But this is the equivalent of killing apps in iOS by sliding them through the app list.
I just tried to kill the program in the simulator and found that the problem was not reproduced.

Currently, my iOS codes will set all unfinished tasks to canceled status when the application is terminated (by OS or users). It happens in applicationWillTerminate: function. I am not sure but I think that killing the application from vscode doesn't do the same as iOS system does.

when task become canceld status,the download progress is lost?Can keep the progress of the last download?

@1232209
Copy link

1232209 commented Mar 25, 2021

this

Can you retrieve the previous progress and continue to download? Why does my last task status change to cancelled as soon as I open it? And then I can only download it from scratch. Where did I get it wrong?

@1232209
Copy link

1232209 commented Mar 25, 2021

This plug-in is perfect, but the current restart of the app can not keep the progress, which makes me very passive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants