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

Application getting crashed when cancelling the download #13

Closed
arunap opened this issue Oct 15, 2015 · 3 comments
Closed

Application getting crashed when cancelling the download #13

arunap opened this issue Oct 15, 2015 · 3 comments

Comments

@arunap
Copy link

arunap commented Oct 15, 2015

When I perform ' download.stop();' the application get crashed

@magude
Copy link

magude commented Jan 11, 2017

because download task need bind a receiver, when this task has been canceled, the receiver and the indicator are still living.
the resolution is simple,that is to add "cordova.getActivity().unregisterReceiver(receiver);" above remove's line.
but code still has bug, download's task can't resume before app is restarted. let't try again...

@magude
Copy link

magude commented Jan 11, 2017

successed. can't resume download task is caused by "activDownloads" has data, clearing the map is OK.

@NickToropov
Copy link
Collaborator

Hi @arunap, we've made a number of improvements recently that fix this issue too.

I'll close it for now but feel free to reopen it if you have any questions.

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

No branches or pull requests

3 participants