diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f8d632..c71df1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,4 +18,8 @@ ## 0.1.2+1 -* Conform to dart formatting standards to improve pub.dev score \ No newline at end of file +* Conform to dart formatting standards to improve pub.dev score + +## 0.1.3 + +* Stop IsolateHolderService when app is killed with swipe to remove diff --git a/android/src/main/kotlin/de/julianassmann/flutter_background/IsolateHolderService.kt b/android/src/main/kotlin/de/julianassmann/flutter_background/IsolateHolderService.kt index 92c3bbf..b31852f 100644 --- a/android/src/main/kotlin/de/julianassmann/flutter_background/IsolateHolderService.kt +++ b/android/src/main/kotlin/de/julianassmann/flutter_background/IsolateHolderService.kt @@ -85,5 +85,10 @@ class IsolateHolderService : Service() { stopSelf() } return START_STICKY; + } + + override fun onTaskRemoved(rootIntent: Intent) { + super.onTaskRemoved(rootIntent); + stopSelf(); } } diff --git a/pubspec.yaml b/pubspec.yaml index b4f2ac8..60c5a4c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_background description: A plugin to keep flutter apps running in the background by using foreground service, wake lock and disabling battery optimizations -version: 0.1.2+1 +version: 0.1.3 repository: https://github.com/JulianAssmann/flutter_background homepage: https://julianassmann.de/ @@ -24,4 +24,4 @@ flutter: package: de.julianassmann.flutter_background pluginClass: FlutterBackgroundPlugin # ios: - # pluginClass: FlutterBackgroundPlugin \ No newline at end of file + # pluginClass: FlutterBackgroundPlugin