If you record a voice memo and use (in my case) airpods, the microphone of the device (iPhone) is used instead of the airpods microphone. This does not happen with voice calls.
Solution
add allowBluetooth to the AudioSession
I've also added allowBluetoothA2DP, similar like in the "CallAudioService".
I've tested the implementation by building the app via xcode on my iPhone 14 pro. Before, i could reproduce the issue, after adding allowBluetooth and sending another voice memo, it did work like expected.
Note
It is my first time contributing. Please let me know if any changes are required.
Thanks for the fix! I've merged it in and you'll see the commit in the next public release! (Which will be slightly delayed due to the thanksgiving holiday)
First time contributor checklist
Contributor checklist
[x] My commits are rebased on the latest main branch
[x] My commits are in nice logical chunks
[x] My contribution is fully baked and is ready to be merged as is
[x] I have tested my contribution on these devices:
Description
My PR fixes the following reported, confirmed, bug by me: https://github.com/signalapp/Signal-iOS/issues/5399
Issue
Solution
I've tested the implementation by building the app via xcode on my iPhone 14 pro. Before, i could reproduce the issue, after adding allowBluetooth and sending another voice memo, it did work like expected.
Note
It is my first time contributing. Please let me know if any changes are required.