Skip to content

How to prevent sounds if phone is on mute/silent? #50

@jonmountjoy

Description

@jonmountjoy

I'm using the Sounds beta version: 1.0.0.beta13

I guess that many app that plays sound may sometimes want to ensure the app doesn't play sound if the phone is silenced.

I can't find any documentation on this, but digging around some of the platform specific methods, and Apple documentation, I did try this:

      await _soundPlayer.iosSetCategory(
          IOSSessionCategory.soloAambient, IOSSessionMode.defaultMode, 2);

It unfortunately didn't work. The Apple documentation for soloAmbient leads me to believe it's the correct category.

Has anyone managed to ensure sounds stop when on Silent/Mute?

Thanks. If someone can point me in the right direction, I'll document what I find.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions