fluttercommunity / fluttercommunity/flutter_downloader

Cancelling download when app is killed.

Open
#328 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
940
Forks
561
Avg merge
1h 18m
Merged PRs (30d)
1

Description

I am using flutter_downloader: ^1.5.0 and after the app is killed the download still continues(on Android), is there any way that this could be controlled? I currently want the downloads to be canceled after the app is killed, I have tried to cancel using WidgetsBindingObserver since the lifecycle is inaccurate and there is surely no way to tell if the app is killed (AppLifecycleState.inactive is always called before AppLifecycleState.paused even when pausing while the app remains in the background).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.