Skip to content

[Bug]: Always returns PermissionStatus.permanentlyDenied when my mic settings for the app #1462

@RowinaSeidler

Description

@RowinaSeidler

Please check the following before submitting a new issue.

Please select affected platform(s)

  • Android
  • iOS
  • Windows

Steps to reproduce

  1. My app asks for permission to use the mic on my iPhone
  2. I press accept
  3. the device is listening and the games are playing correctly based on listening to the pitch.
  4. however, the mic status is still permanently denied

this code in my info.plist is fine:
NSrophoneUsageDescription
Please allow the app access to your mic so it can hear your piano.

Expected results

I expect the code below to produce "MICROPHONE STATUS: PermissionStatus.granted"

final micStatus = await Permission.microphone.request(); // Check the current status of the microphone permission
print("MICROPHONE STATUS: $micStatus");

Actual results

but instead it produces "MICROPHONE STATUS: PermissionStatus.permanentlyDenied"

Code sample

Code sample
final micStatus = await Permission.microphone.request(); // Check the current status of the microphone permission
    print("MICROPHONE STATUS: $micStatus");

Screenshots or video

Screenshots or video demonstration

[Upload media here]

Version

11.4.0

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.29.2, on macOS 15.4 24E248 darwin-arm64, locale en-US) [687ms]
    • Flutter version 3.29.2 on channel stable at /Users/rowina/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c236373904 (4 weeks ago), 2025-03-13 16:17:06 -0400
    • Engine revision 18b71d647a
    • Dart version 3.7.2
    • DevTools version 2.42.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [2.2s]
    • Android SDK at /Users/rowina/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [2.1s]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16E140
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [10ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1) [10ms]
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] VS Code (version 1.92.2) [9ms]
    • VS Code at /Users/rowina/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.108.0

[✓] VS Code (version 1.98.2) [9ms]
    • VS Code at /Users/rowina/Downloads/Visual Studio Code-2.app/Contents
    • Flutter extension version 3.108.0

[✓] Connected device (6 available) [6.6s]
    • Pixel 6 (mobile)                    • 18241FDF6006BB                       • android-arm64  • Android 15 (API 35)
    • Rowina Seidler’s iPhone 13 (mobile) • 00008110-000E4D6236F1801E            • ios            • iOS 18.4 22E240
    • iPhone 15 Plus (mobile)             • 7220CADD-93E6-46DB-A6C6-437A7C919ED5 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-5 (simulator)
    • macOS (desktop)                     • macos                                • darwin-arm64   • macOS 15.4 24E248 darwin-arm64
    • Mac Designed for iPad (desktop)     • mac-designed-for-ipad                • darwin         • macOS 15.4 24E248 darwin-arm64
    • Chrome (web)                        • chrome                               • web-javascript • Google Chrome 134.0.6998.166

[✓] Network resources [255ms]
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: closed (missing info)Indicates the issue was automatically closed due to a lack of information.status: needs more infoWe need more information before we can continue work on this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions