Skip to content

Commit a7f8136

Browse files
committed
release: 8.17.0
1 parent 4347497 commit a7f8136

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 8.17.0
2+
3+
* [**FEAT**] Allow `onNotificationPressed` to trigger without `SYSTEM_ALERT_WINDOW` permission
4+
- Do not use the `launchApp` function inside the `onNotificationPressed` callback
5+
- Instead, use the `notificationInitialRoute` option of the `startService` or `updateService` functions
6+
17
## 8.16.0
28

39
* [**BREAKING**] Change `ServiceRequestResult` class to `sealed class` for improved code readability

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To use this plugin, add `flutter_foreground_task` as a [dependency in your pubsp
2727

2828
```yaml
2929
dependencies:
30-
flutter_foreground_task: ^8.16.0
30+
flutter_foreground_task: ^8.17.0
3131
```
3232
3333
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.

example/lib/main.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ class _ExamplePageState extends State<ExamplePage> {
169169
serviceId: 256,
170170
notificationTitle: 'Foreground Service is running',
171171
notificationText: 'Tap to return to the app',
172-
// Please refer to the following document to use a custom notification icon.
173-
// https://github.com/Dev-hwang/flutter_foreground_task/blob/master/documentation/customize_notification_icon.md
174172
notificationIcon: null,
175173
notificationButtons: [
176174
const NotificationButton(id: 'btn_hello', text: 'hello'),

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_foreground_task
22
description: This plugin is used to implement a foreground service on the Android platform.
3-
version: 8.16.0
3+
version: 8.17.0
44
homepage: https://github.com/Dev-hwang/flutter_foreground_task
55

66
environment:

0 commit comments

Comments
 (0)