diff --git a/CHANGELOG.md b/CHANGELOG.md index 29123a3..da1594f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.2] - 2024-12-11 + +### Changed + +- Fixed blank sound not playing to keep background process alive. +- Example app background process will now stop on app close for Android. + ## [1.0.1] - 2024-12-07 ### Changed diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index 8913c63..adca437 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -1,4 +1,4 @@ - + @@ -8,8 +8,10 @@ android:icon="@mipmap/ic_launcher"> - + android:exported="true" + android:foregroundServiceType="mediaPlayback" + tools:replace="android:stopWithTask" + android:stopWithTask="true"/> with WidgetsBindingObserver { intervalIndex < intervals.length - 1) { logger.d("Advancing to next interval"); timerState.advanceToNextInterval(intervals); + } else if (timerState.currentMicroSeconds % 2000000 == 0) { + await playSound(blankSoundId, pool, preferences); } - } else if (timerState.currentMicroSeconds % 1000000 == 0) { - await playSound(blankSoundId, pool, preferences); } service.invoke('update', timerState.toMap()); diff --git a/pubspec.yaml b/pubspec.yaml index 883af5b..491847d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: background_hiit_timer description: Flutter background timer package developed for HIIT timers. -version: 1.0.1 +version: 1.0.2 repository: https://github.com/a-mabe/background_hiit_timer funding: