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

Stop IsolateHolderService when app is killed with swipe to remove #10

Merged
merged 3 commits into from
Jan 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@

## 0.1.2+1

* Conform to dart formatting standards to improve pub.dev score
* Conform to dart formatting standards to improve pub.dev score

## 0.1.3

* Stop IsolateHolderService when app is killed with swipe to remove
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,10 @@ class IsolateHolderService : Service() {
stopSelf()
}
return START_STICKY;
}

override fun onTaskRemoved(rootIntent: Intent) {
super.onTaskRemoved(rootIntent);
stopSelf();
}
}
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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/

Expand All @@ -24,4 +24,4 @@ flutter:
package: de.julianassmann.flutter_background
pluginClass: FlutterBackgroundPlugin
# ios:
# pluginClass: FlutterBackgroundPlugin
# pluginClass: FlutterBackgroundPlugin