mic_stream icon indicating copy to clipboard operation
mic_stream copied to clipboard

iOS issue

Open Konst80 opened this issue 3 years ago • 6 comments

Hello,

I have check the basic functionality on Android simulator and the audio streams works fine.

Instead in iOS 15.0 simulator I have problem that the stream does not start. It gets stuck at the output "flutter: wait for stream". So it looks like the native iOS is not starting the microphone audio stream. BTW, there is no request for MIC access within the app. Of course, I added the necessary lines in the Info.plist.

Any ideas why the stream is not starting on iOS?

Konst80 avatar Nov 17 '21 20:11 Konst80

Sorry to hear that. Sadly, I can't help you at all since I have no experience with iOS development whatsoever. I merged iOS support from Pull Request #15, you may want to reach out to the authors directly instead.

If anyone can replicate or even fix this I'm happy to provide my help.

anarchuser avatar Nov 17 '21 21:11 anarchuser

For me it doesn't work in Simulator but does work on a real device. Make sure you set your Info.plist correctly, if you don't it won't be able to ask for this permission.

asmodeoux avatar Feb 22 '22 12:02 asmodeoux

If you know how to fix it, please feel free to open a Pull Request. I don't know anything about iOS permission handling

anarchuser avatar Feb 22 '22 12:02 anarchuser

It seems not a permission issue, cause my simulator not work too(just wait for stream) after I granted the microphone permission request. I haven't try on real device yet. flutter 3.0.1 simulator ios15.5 iphone13

dannyxu2015 avatar May 25 '22 02:05 dannyxu2015

@nmfisher

dannyxu2015 avatar May 25 '22 02:05 dannyxu2015

Yes, this is permission issue. Check out this issue in the flutter-permission-handler package that is used in this: https://github.com/Baseflow/flutter-permission-handler/issues/574

basically you should add 'PERMISSION_MICROPHONE=1', into config.build_settings in your ios project's podfiles

Valdemayar avatar Oct 06 '23 15:10 Valdemayar