I try use microphone in my flutter app. I create method do try ask user about microphone permissions. It working on Android, but not working on iOS. Of course I add this line to info.plist:
<key>NSMicrophoneUsageDescription</key>
<string>Used to capture audio for image picker plugin</string>
I ask about permissions using widget:
Widget allowButton() {
   return OutlinedButton(
       child: Text("ALLOW MIC"),
       onPressed: () async {
         var status = await Permission.microphone.request().then((value) {
           print("After request()");
           return value;
         });
         print(status);
         if (await Permission.microphone.request().isGranted) {
           print("OK!!!");
         } else {
           print("NOT OK!!!");
         }
       });
 } 
More information about libraries and environment:
- permission_handler: ^8.1.6
 - flutter 2.2.2
 - IDE VSCode on MacOS 11.6
 - I try rebuild project (using "flutter clean")
 
In my app settings I do not see information about microphone. Of course camera and gallery access working.
