diff --git a/CHANGELOG.md b/CHANGELOG.md index 597ceee6..e281f313 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ +## 8.14.0 + +* [**FEAT**] Support quickboot for HTC devices + ## 8.13.0 -* [**CHORE**] Downgrade iOS minimumVersion from 13.0 to 12.0 +* [**CHORE**] Downgrade iOS minimumVersion from `13.0` to `12.0` ## 8.12.0 @@ -9,7 +13,7 @@ ## 8.11.0 -* [**FEAT**] Allow sending Set collection using `FlutterForegroundTask.sendDataToMain` +* [**FEAT**] Allow sending `Set` collection using `FlutterForegroundTask.sendDataToMain` ## 8.10.4 diff --git a/README.md b/README.md index f7dcc11c..3a41e8c5 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ To use this plugin, add `flutter_foreground_task` as a [dependency in your pubsp ```yaml dependencies: - flutter_foreground_task: ^8.13.0 + flutter_foreground_task: ^8.14.0 ``` After adding the plugin to your flutter project, we need to declare the platform-specific permissions ans service to use for this plugin to work properly. @@ -399,18 +399,19 @@ class FirstTaskHandler extends TaskHandler { ), callback: updateCallback, ); - } else { - FlutterForegroundTask.updateService( - notificationTitle: 'Hello FirstTaskHandler :)', - notificationText: timestamp.toString(), - ); - - // Send data to main isolate. - final Map data = { - "timestampMillis": timestamp.millisecondsSinceEpoch, - }; - FlutterForegroundTask.sendDataToMain(data); + return; } + + FlutterForegroundTask.updateService( + notificationTitle: 'Hello FirstTaskHandler :)', + notificationText: timestamp.toString(), + ); + + // Send data to main isolate. + final Map data = { + "timestampMillis": timestamp.millisecondsSinceEpoch, + }; + FlutterForegroundTask.sendDataToMain(data); } @override @@ -549,10 +550,20 @@ class MyTaskHandler extends TaskHandler { ### :hatched_chick: other example -* [`internal_plugin_service`](https://github.com/Dev-hwang/flutter_foreground_task_example/tree/main/internal_plugin_service) (Recommend) -* [`location_service`](https://github.com/Dev-hwang/flutter_foreground_task_example/tree/main/location_service) -* [`record_service`](https://github.com/Dev-hwang/flutter_foreground_task_example/tree/main/record_service) -* [`geofencing_service`](https://github.com/Dev-hwang/flutter_foreground_task_example/tree/main/geofencing_service) +#### [`internal_plugin_service`](https://github.com/Dev-hwang/flutter_foreground_task_example/tree/main/internal_plugin_service) +An example of using the platform channel in project with `flutter_foreground_task`. + +#### [`location_service`](https://github.com/Dev-hwang/flutter_foreground_task_example/tree/main/location_service) +An example of a background location service implementation using `flutter_foreground_task` and `fl_location`. + +#### [`record_service`](https://github.com/Dev-hwang/flutter_foreground_task_example/tree/main/record_service) +An example of a voice record service implementation using `flutter_foreground_task` and `record`. + +#### [`geofencing_service`](https://github.com/Dev-hwang/flutter_foreground_task_example/tree/main/geofencing_service) +An example of a background geofencing service implementation using `flutter_foreground_task` and `geofencing_api`. + +#### [`pedometer_service`](https://github.com/Dev-hwang/flutter_foreground_task_example/tree/main/pedometer_service) +An example of a pedometer service implementation using `flutter_foreground_task` and `pedometer`. ## More Documentation diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index c002e652..1b13a38c 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -14,6 +14,8 @@ + +