ringer_mode 1.0.2 copy "ringer_mode: ^1.0.2" to clipboard
ringer_mode: ^1.0.2 copied to clipboard

PlatformAndroid

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.2 - 2025-11-21 #

Fixed #

  • Fixed MissingPluginException when subscribing to ringerModeStream on Android
  • Added EventChannel registration and StreamHandler implementation
  • Added BroadcastReceiver to track RINGER_MODE_CHANGED_ACTION events
  • Added iOS support in Dart layer (returns silent mode as fallback)

Changed #

  • ringerModeStream now properly emits events when ringer mode changes on Android
  • ringerModeStream on iOS returns a stream with single silent value (iOS doesn't support ringer mode detection)

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)
0
likes
150
points
4
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to detect and manage ringer mode on Android devices. iOS is not supported due to platform limitations.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on ringer_mode

Packages that implement ringer_mode