From d81649847f2eaeee78b21058ad140218458e180f Mon Sep 17 00:00:00 2001 From: wjhwang Date: Wed, 20 Nov 2024 09:58:32 +0900 Subject: [PATCH 1/3] feat: Support quickboot for HTC devices --- android/src/main/AndroidManifest.xml | 2 ++ .../pravera/flutter_foreground_task/service/RebootReceiver.kt | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 @@ + + Date: Wed, 20 Nov 2024 10:05:18 +0900 Subject: [PATCH 2/3] docs: Update documentation --- README.md | 41 ++++++++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index f7dcc11c..44d7ea2c 100644 --- a/README.md +++ b/README.md @@ -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 From 652abd01aed7e2cb6e85985809e386d81398de11 Mon Sep 17 00:00:00 2001 From: wjhwang Date: Wed, 20 Nov 2024 10:14:27 +0900 Subject: [PATCH 3/3] release: 8.14.0 --- CHANGELOG.md | 8 ++++++-- README.md | 2 +- pubspec.yaml | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) 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 44d7ea2c..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. diff --git a/pubspec.yaml b/pubspec.yaml index 0ffaafa0..4901a1eb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_foreground_task description: This plugin is used to implement a foreground service on the Android platform. -version: 8.13.0 +version: 8.14.0 homepage: https://github.com/Dev-hwang/flutter_foreground_task environment: @@ -10,7 +10,7 @@ environment: dependencies: flutter: sdk: flutter - plugin_platform_interface: ^2.1.6 + plugin_platform_interface: ^2.1.8 shared_preferences: ^2.2.2 platform: ^3.1.4