Skip to content

Commit

Permalink
release: 8.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev-hwang committed Oct 2, 2024
1 parent fdcd6eb commit dc012e5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 8.10.2

* [**FIX**] Fixed an issue where exception was thrown when flutterEngine failed to start [#282](https://github.com/Dev-hwang/flutter_foreground_task/issues/282)
* [**FIX**] Fixed an issue with flutterEngine not being destroyed properly

## 8.10.0

* [**BREAKING**] Change `onStart`, `onDestroy` callback return type from `void` to `Future<void>`
Expand Down
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ To use this plugin, add `flutter_foreground_task` as a [dependency in your pubsp

```yaml
dependencies:
flutter_foreground_task: ^8.10.0
flutter_foreground_task: ^8.10.2
```
After adding the `flutter_foreground_task` plugin to the flutter project, we need to specify the permissions and service to use for this plugin to work properly.
Expand All @@ -40,7 +40,21 @@ If you want the foreground service to run only when the app is running, add `and

As mentioned in the Android guidelines, to start a FG service on Android 14+, you must specify `android:foregroundServiceType`.

You can read all the details in the Android Developer Page : https://developer.android.com/about/versions/14/changes/fgs-types-required
* [`camera`](https://developer.android.com/about/versions/14/changes/fgs-types-required#camera)
* [`connectedDevice`](https://developer.android.com/about/versions/14/changes/fgs-types-required#connected-device)
* [`dataSync`](https://developer.android.com/about/versions/14/changes/fgs-types-required#data-sync)
* [`health`](https://developer.android.com/about/versions/14/changes/fgs-types-required#health)
* [`location`](https://developer.android.com/about/versions/14/changes/fgs-types-required#location)
* [`mediaPlayback`](https://developer.android.com/about/versions/14/changes/fgs-types-required#media)
* [`mediaProjection`](https://developer.android.com/about/versions/14/changes/fgs-types-required#media-projection)
* [`microphone`](https://developer.android.com/about/versions/14/changes/fgs-types-required#microphone)
* [`phoneCall`](https://developer.android.com/about/versions/14/changes/fgs-types-required#phone-call)
* [`remoteMessaging`](https://developer.android.com/about/versions/14/changes/fgs-types-required#remote-messaging)
* [`shortService`](https://developer.android.com/about/versions/14/changes/fgs-types-required#short-service)
* [`specialUse`](https://developer.android.com/about/versions/14/changes/fgs-types-required#special-use)
* [`systemExempted`](https://developer.android.com/about/versions/14/changes/fgs-types-required#system-exempted)

You can read all the details in the [Android Developer Page](https://developer.android.com/about/versions/14/changes/fgs-types-required)

```
<!-- required -->
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_foreground_task
description: This plugin is used to implement a foreground service on the Android platform.
version: 8.10.0
version: 8.10.2
homepage: https://github.com/Dev-hwang/flutter_foreground_task

environment:
Expand Down

0 comments on commit dc012e5

Please sign in to comment.