PackageTrack
Sign in Get early access

audio_service

Flutter plugin to play audio in the background while the screen is off.

0.18.19 207K downloads/mo #838 most downloaded on pub.dev ryanheise/audio_service

What this package is like to depend on

Last release 1 months ago

29 Jun 2026

Release timing varies

gaps range from 2 weeks to 1.2 years

Nearly every release is documented

notes for 78 of 78 stable releases

Nothing withdrawn

no release was ever pulled

8 years old

81 releases · first in 2018

1 release in the last 12 months

see the full history below

Release timeline

81 releases · Nov 2018 to Jun 2026
2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 60 of 81
  1. 0.18.19 29 Jun 2026
    Release notes
    • Support AGP 9.
    • Migrate Android build files to .kts
    Open source →
  2. 0.18.18 11 Apr 2025
    Release notes
    • Fix setPlaybackState entitlement issue on iOS.
    • Fix Android stopForeground deprecation warning.
    • Bump compile/target SDK to 35 on Android.
    • Bump minSdk to 19 on Android.
    • bump AGP to 8.5.2.
    Open source →
  3. 0.18.17 04 Feb 2025
    Release notes
    • Add support for SwiftPM.
    Open source →
  4. 0.18.16 14 Dec 2024
    Release notes
    • Support MPNowPlayingInfoPropertyIsLiveStream on IOS (@MuradSh, @celsoft).
    Open source →
  5. 0.18.15 17 Jul 2024
    Release notes
    • Add deep link support for FlutterFragmentActivity (@jan-milovanovic).
    • Fix JDK 21 compile error.
    Open source →
  6. 0.18.14 10 Jul 2024
    Release notes
    • Support rxdart 0.28.x.
    Open source →
  7. 0.18.13 29 Mar 2024
    Release notes
    • Fix Android NPE in sendNotificationClicked and onConnected.
    • Catch and broadcast async platform exceptions.
    • Support js '>=0.6.3 <0.8.0'
    • Fix setAndroidPlaybackInfo call blocking (@julianscheel).
    • Pass through missing extras to playFrom.../prepareFrom... (@Ruchit2759).
    Open source →
  8. 0.18.12 12 Sep 2023
    Release notes
    • Fix crash with Oppo/OnePlus devices running Android 13.
    Open source →
  9. 0.18.11 28 Aug 2023
    Release notes
    • Support custom media controls (@defsub)
    • Support fast forward, rewind and stop when targeting Android 13 (@defsub)
    Open source →
  10. 0.18.10 31 May 2023
    Release notes
    • Add support for AGP 8 (@theskyblockman).
    • Update AGP to 7.3.0.
    • Update minimum flutter version to 3.0.
    Open source →
  11. 0.18.9 01 Jan 2023
    Release notes
    • Fix cache bug in AudioServiceFragmentActivity (@Mordtimer).
    • Add Android Auto manifest entry for example app (@ColinSchmale).
    Open source →
  12. 0.18.8 16 Dec 2022
    Release notes
    • Improve efficiency of mediaItem updates (@nt4f04uNd).
    Open source →
  13. 0.18.7 17 Jul 2022
    Release notes
    • Fix stopForeground bug on Android SDK < 24.
    • Migrate to androidx.media 1.6.0 (@snipd-mikel)
    • Propagate MediaItem extras to Android Auto (@snipd-mikel)
    • Update progress bar in Android Auto (@snipd-mikel)
    Open source →
  14. 0.18.6 27 Jun 2022
    Release notes
    • Fix build when targeting Android 13.
    • Add MediaItem.artHeaders.
    Open source →
  15. 0.18.5 21 Jun 2022
    Release notes
    • Add AudioServiceFragmentActivity (@deimantasa).
    • Support content:// art URIs in notification on Android (@nt4f04uNd).
    • Document Android foregroundServiceType.
    Open source →
  16. 0.18.4 27 Feb 2022
    Release notes
    • Fix Android FlutterJNI error after quick relaunch.
    • Fix Android NPE when destroying additional FlutterEngines.
    Open source →
  17. 0.18.3 24 Dec 2021
    Release notes
    • Fix build when targeting Android 12.
    Open source →
  18. 0.18.2 08 Dec 2021
    Release notes
    • Guard against NPE when Android service is destroyed quickly.
    • Migrate to flutter_lints.
    • Queue messages from platform if init() called late.
    • Fix deep linking on Android (@vishna/@ryanheise).
    Open source →
  19. 0.18.1 16 Oct 2021
    Release notes
    • Remove iOS notification on stop.
    • Fix setSpeed action on iOS.
    • Eliminate redundant notification updates on Android.
    • Handle null album and artist on web (@nt4f04uNd).
    • Fix multithreaded crash in notification tap (@nt4f04uNd).
    • Fix regression to show album art on lock screen (@nt4f04uNd).
    • Add playlist/shuffle/loop example.
    Open source →
  20. 0.18.0 11 Sep 2021
    Release notes
    • Use a single isolate for easier communication.
    • Replace BackgroundAudioTask by AudioHandler.
    • Replace AudioService.start by AudioService.init.
    • Android Auto support.
    • Android 11 media session resumption support.
    • Federated plugin model.
    • Composable audio handlers (@yringler).
    • More callbacks:
      • prepareFromSearch
      • prepareFromUri
      • playFromSearch
      • playFromUri
      • addQueueItems
      • removeQueueItemAt
      • setCaptioningEnabled
      • getMediaItem
      • search
      • androidSetRemoteVolume
      • androidAdjustRemoteVolume
    • More state:
      • queueTitle
      • ratingStyle
      • androidPlaybackInfo
      • customState
    • Default platform implementation for Windows/Linux (@keaganhilliard)
    • iOS/macOS control center bug fixes (@nt4f04uNd)
    • Fix queue index out of bounds bug (@kcrebound)
    • Fix bug when starting foreground service from background (@chengyuhui)
    • Make MediaItem.album nullable (@letiagoalves)
    • Code quality:
      • Unit tests (@suragch, @nt4f04uNd)
      • Strong-mode and pedantic lints, code consistency (@nt4f04uNd)
    • Improve artUri performance on Android (@nt4f04uNd)
    • Better detection of browser support (@nt4f04uNd)
    Open source →
  21. 0.18.0-beta.1 10 Sep 2021 pre-release

    Nothing published for this version

  22. 0.18.0-beta.0 12 Jul 2021 pre-release

    Nothing published for this version

  23. 0.17.1 29 May 2021
    Release notes
    • Support rxdart 0.27.0.
    Open source →
  24. 0.17.0 27 Mar 2021
    Release notes
    • Null safety.
    • Change artUri type from String to Uri.
    Open source →
  25. 0.17.0-nullsafety.0 04 Mar 2021 pre-release

    Nothing published for this version

  26. 0.16.2 28 Jan 2021
    Release notes
    • Fix positionStream bug when seek is interrupted by onStop.
    • Fix JS name clash for MediaMetadata.
    • Update NowPlayingInfo speed correctly on iOS (@ryotayama).
    Open source →
  27. 0.16.2+1 24 Feb 2021
    Release notes
    • Mention upcoming 0.18.0 release in README.
    Open source →
  28. 0.16.1 03 Jan 2021
    Release notes
    • Fix bug in start() when using HttpOverrides.
    Open source →
  29. 0.16.0 23 Dec 2020
    Release notes
    • setState parameters default to previous state.
    • Change updateTime from Duration to DateTime.
    • Rename newStartRating to newStarRating.
    • Declare type of MediaItem.extras (@hacker1024).
    • Unit tests.
    • Fix compile error on macOS.
    • Update dependencies.
    Open source →
  30. 0.15.3 09 Nov 2020
    Release notes
    • Add positionStream and runningStream.
    • Add androidShowNotificationBadge option (@aleexbt).
    Open source →
  31. 0.15.2 13 Oct 2020
    Release notes
    • Process connect/disconnect/start requests in a queue.
    • Guard against null setState arguments.
    • Range check in onSkipToPrevious (@snaeji).
    Open source →
  32. 0.15.1 04 Oct 2020
    Release notes
    • Fix loading of file:// artUri values.
    • Allow booleans/doubles in MediaItems.
    • Silently ignore duplicate onStop requests.
    Open source →
  33. 0.15.0 12 Sep 2020
    Release notes
    • Web support (@keaganhilliard)
    • macOS support (@hacker1024)
    • Route next/previous buttons to onClick on Android (@stonega)
    • Correctly scale skip intervals for control center (@subhash279)
    • Handle repeated stop/start calls more robustly.
    • Fix Android 11 bugs.
    Open source →
  34. 0.14.1 30 Aug 2020
    Release notes
    • audio_session dependency now supports minSdkVersion 16 on Android.
    Open source →
  35. 0.14.0 26 Aug 2020
    Release notes
    • audio session management now handled by audio_session (see Migration Guide).
    • Exceptions in background audio task are logged and forwarded to client.
    Open source →
  36. 0.13.0 09 Aug 2020
    Release notes
    • All BackgroundAudioTask callbacks are now async.
    • Add default implementation of onSkipToNext/onSkipToPrevious.
    • Bug fixes.
    Open source →
  37. 0.12.0 09 Aug 2020
    Release notes
    • Add setRepeatMode/setShuffleMode.
    • Enable iOS Control Center buttons based on setState.
    • Support seek forward/backward in iOS Control Center.
    • Add default behaviour to BackgroundAudioTask.
    • Bug fixes.
    • Simplify example.
    Open source →
  38. 0.11.2 26 Jun 2020
    Release notes
    • Fix bug with album metadata on Android.
    Open source →
  39. 0.11.1 25 Jun 2020
    Release notes
    • Allow setting the iOS audio session category and options.
    • Allow AudioServiceWidget to recognise swipe gesture on iOS.
    • Check for null title and album on Android.
    Open source →
  40. 0.11.0 12 Jun 2020
    Release notes
    • Breaking change: onStop must await super.onStop to shutdown task.
    • Fix Android memory leak.
    Open source →
  41. 0.10.0 09 Jun 2020
    Release notes
    • Replace androidStopOnRemoveTask with onTaskRemoved callback.
    • Add onClose callback.
    • Breaking change: new MediaButtonReceiver in AndroidManifest.xml.
    Open source →
  42. 0.9.0 01 Jun 2020
    Release notes
    • New state model: split into playing + processingState.
    • androidStopForegroundOnPause ties foreground state to playing state.
    • Add MediaItem.toJson/fromJson.
    • Add AudioService.notificationClickEventStream (Android).
    • Add AudioService.updateMediaItem.
    • Add AudioService.setSpeed.
    • Add PlaybackState.bufferedPosition.
    • Add custom AudioService.start parameters.
    • Rename replaceQueue -> updateQueue.
    • Rename Android-specific start parameters with android- prefix.
    • Use Duration type for all time values.
    • Pass fastForward/rewind intervals through to background task.
    • Allow connections from background contexts (e.g. android_alarm_manager).
    • Unify iOS/Android focus APIs.
    • Bug fixes and dependency updates.
    Open source →
  43. 0.8.0 04 May 2020
    Release notes
    • Allow UI to await the result of custom actions.
    • Allow background to broadcast custom events to UI.
    • Improve memory management for art bitmaps on Android.
    • Convenience methods: replaceQueue, playMediaItem, addQueueItems.
    • Bug fixes and dependency updates.
    Open source →
  44. 0.7.2 15 Apr 2020
    Release notes
    • Shutdown background task if task killed by IO (Android).
    • Bug fixes and dependency updates.
    Open source →
  45. 0.7.1 10 Apr 2020
    Release notes
    • Add AudioServiceWidget to auto-manage connections.
    • Allow file URIs for artUri.
    Open source →
  46. 0.7.0 07 Apr 2020
    Release notes
    • Support skip forward/backward in command center (iOS).
    • Add 'extras' field to MediaItem.
    • Artwork caching and preloading supported on Android+iOS.
    • Bug fixes.
    Open source →
  47. 0.6.2 24 Feb 2020
    Release notes
    • Bug fixes.
    Open source →
  48. 0.6.1 05 Feb 2020
    Release notes
    • Option to stop service on closing task (Android).
    Open source →
  49. 0.6.0 30 Jan 2020
    Release notes
    • Migrated to V2 embedding API (Flutter 1.12).
    Open source →
  50. 0.5.7 28 Dec 2019
    Release notes
    • Destroy isolates after use.
    Open source →
  51. 0.5.6 25 Dec 2019
    Release notes
    • Support Flutter 1.12.
    Open source →
  52. 0.5.5 18 Dec 2019
    Release notes
    • Bump sdk version to 2.6.0.
    Open source →
  53. 0.5.4 05 Dec 2019
    Release notes
    • Fix Android memory leak.
    Open source →
  54. 0.5.3 01 Dec 2019
    Release notes
    • Support Queue, album art and other missing features on iOS.
    Open source →
  55. 0.5.2 25 Nov 2019
    Release notes
    • Update documentation and example.
    Open source →
  56. 0.5.1 23 Nov 2019
    Release notes
    • Playback state broadcast on connect (iOS).
    Open source →
  57. 0.5.0 22 Nov 2019
    Release notes
    • Partial iOS support.
    Open source →
  58. 0.4.2 10 Nov 2019
    Release notes
    • Option to call stopForeground on pause.
    Open source →
  59. 0.4.1 29 Sep 2019
    Release notes
    • Fix queue support bug
    Open source →
  60. 0.4.0 27 Sep 2019
    Release notes
    • Breaking change: AudioServiceBackground.run takes a single parameter.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive