iPhone 17 Pro voice messages do not switch to earpiece
I have an issue with my iPhone 17 pro where voice messages do not switch correctly to the earpiece speaker when I bring the phone to my ear.
When I play a voice message and put the phone to my ear:
* the screen turns off as expected (proximity sensor works),
* but the audio does not switch to the earpiece speaker,
* the sound remains loud and continues to play through both the bottom speaker and the top speaker.
iPhone 17 Pro, iOS 26