You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recording doesn't start when calling when calling recorderStream.start()
when pausing the recorderstream and resuming it, it crashes the application with the following logs appearing:
sound_stream/SwiftSoundStreamPlugin.swift:199: Fatal error: Unexpectedly found nil while unwrapping an Optional value
* thread #1, queue = 'com.apple.main-thread', stop reason = Fatal error: Unexpectedly found nil while unwrapping an Optional value
frame #0: 0x0000000186755cf4 libswiftCore.dylib`_swift_runtime_on_report
libswiftCore.dylib`_swift_runtime_on_report:
-> 0x186755cf4 <+0>: ret
libswiftCore.dylib`_swift_reportToDebugger:
0x186755cf8 <+0>: b 0x186755cf4 ; _swift_runtime_on_report
libswiftCore.dylib`_swift_shouldReportFatalErrorsToDebugger:
0x186755cfc <+0>: adrp x8, 335268
0x186755d00 <+4>: ldrb w0, [x8, #0x874]
The text was updated successfully, but these errors were encountered:
I solved it, the package itself asks for microphone permission, but if you use permission_handler by baseflow it still says permanentlyDenied. You need to specifically add this in your Podfile:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
flutter_additional_ios_build_settings(target)
# You can enable the permissions needed here. For example to enable camera
# permission, just remove the `#` character in front so it looks like this:
#
# ## dart: PermissionGroup.camera
# 'PERMISSION_CAMERA=1'
#
# Preprocessor definitions can be found in: https://github.com/Baseflow/flutter-permission-handler/blob/master/permission_handler/ios/Classes/PermissionHandlerEnums.h
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
## dart: PermissionGroup.microphone
'PERMISSION_MICROPHONE=1',
]
end
end
end
Situation
Recording doesn't start when calling when calling
recorderStream.start()
when pausing the recorderstream and resuming it, it crashes the application with the following logs appearing:
The text was updated successfully, but these errors were encountered: