ringer_mode 1.0.1
ringer_mode: ^1.0.1 copied to clipboard
A Flutter plugin to detect and manage ringer mode on Android devices. iOS is not supported due to platform limitations.
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.1 - 2025-10-25 #
Fixed #
- Fixed parameter passing in setRingerMode method (Dart to Kotlin communication)
- Fixed AndroidManifest.xml permission from ACCESS_NOTIFICATION_POLICY to MODIFY_AUDIO_SETTINGS
- Added proper .gitignore for Flutter plugin
1.0.0 - 2025-10-16 #
Added #
- Initial release of ringer_mode plugin
- Support for Android platform only
- Primary functionality: Get current ringer mode
- Additional feature: Set ringer mode (silent, vibrate, normal)
- Stream support for real-time ringer mode changes
- Comprehensive error handling with fallback values
- Complete documentation and README
Technical Details #
- Android: Uses AudioManager to get and set ringer mode
- Stream implementation using EventChannel for real-time updates
- Cross-platform API design (iOS not supported due to platform limitations)
- Proper error handling and exception management
Platform Support #
- ✅ Android: Full support for get/set operations
- ❌ iOS: Not supported (Apple restricts access to ringer mode API)