generic_audio_notification 1.0.0 copy "generic_audio_notification: ^1.0.0" to clipboard
generic_audio_notification: ^1.0.0 copied to clipboard

PlatformAndroid

Android package for playing looping background audio via FCM push notifications. Perfect for critical alerts requiring continuous audio until user interaction.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.0 - 2025-12-16 #

Added #

  • Initial release of generic_audio_notification package
  • Android Foreground Service for looping audio playback
  • FCM data message handling for background/terminated states
  • Automatic audio stop on notification tap or app resume
  • Comprehensive logging for all FCM scenarios
  • Example app with FCM token display and testing UI
  • Support for custom notification title, body, and icon
  • Full documentation with setup and usage instructions
  • Loop control parameter: should_loop to control whether audio loops or plays once

Features #

  • Works in foreground, background, and terminated app states
  • Data-only FCM message support
  • High-priority message handling for reliable delivery
  • MediaPlayer-based audio looping with configurable loop behavior
  • Notification channel management
  • Lifecycle-aware audio control
  • Auto-stop when should_loop=false and audio completes

Supported Platforms #

  • Android (API 26+)

Known Limitations #

  • Android-only (iOS not supported due to platform restrictions)
  • Requires publicly accessible audio URLs
  • Data-only messages may not trigger foreground listener on Android
0
likes
150
points
110
downloads

Publisher

unverified uploader

Weekly Downloads

Android package for playing looping background audio via FCM push notifications. Perfect for critical alerts requiring continuous audio until user interaction.

Repository (GitHub)
View/report issues

Topics

#fcm #push-notifications #audio #foreground-service #android

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter, flutter_local_notifications, plugin_platform_interface

More

Packages that depend on generic_audio_notification

Packages that implement generic_audio_notification