Skip to content

Audio Manager Plugin #237

@selmanyasinaktas

Description

@selmanyasinaktas

Plugin Request

Name: Audio Manager Plugin
Package: @capacitor-community/audio-manager

Platform(s)

  • Android 5.0+ (API 21+)
  • iOS 13+
  • Web (limited fallback)

Existing Solutions

I couldn't find a Capacitor plugin that handles system audio settings like ringer mode and volume control. The closest one is @capacitor-community/native-audio, but it's focused on playing audio files rather than managing device audio settings.

Description

This plugin lets you interact with device audio settings - get/set ringer mode, control volume levels for different streams, detect mute state, and check DND status on Android.

I built it because I needed ringer mode detection for an app I was working on and couldn't find an existing solution.

What it does:

  • Get and set ringer mode (normal, vibrate, silent)
  • Get and set volume for different streams (music, ring, notification, alarm, system, voiceCall)
  • Check if device is muted
  • Check DND status (Android only)
  • Listen for ringer mode and volume changes

Platform notes:

  • Android has full support
  • iOS has some limitations due to Apple restrictions (documented in README)
  • Web returns fallback values

Current status:
Published on npm as capacitor-audio-manager (v1.0.0). Tested on Android. iOS implementation follows Apple's AVAudioSession documentation but hasn't been tested on a real device yet.

I'm open to transferring the repository and maintaining it under Capacitor Community.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions