background_runtime_macos 0.1.1
background_runtime_macos: ^0.1.1 copied to clipboard
macOS implementation of the background_runtime plugin.
background_runtime_macos #
macOS implementation of the background_runtime Flutter plugin.
Uses Swift, Background URLSession, and AVPlayer.
Supports macOS 12.0+.
Capabilities #
- Downloads: Background URLSession with download/resume task APIs. Progress callbacks via
EventChannel. - Audio playback: AVPlayer (streaming, async).
addPeriodicTimeObserverfor drift-free progress.KVOonAVPlayerItem.statusfor ready/failed state. - Notifications: Control center / Touch Bar integration via
MPNowPlayingInfoCenterwith album art (MPMediaItemPropertyArtwork).MPRemoteCommandCenterhandles Previous/Next/Play/Pause/Stop. - Notification actions: Command events mapped to
NotificationActionenum and sent to Dart vianotificationActionEventsEventChannel. - Permissions: Audio permission requested on main thread when
enableAudiois enabled.