Switch to earpiece if device is held to ear when playing voice messages#6409
Switch to earpiece if device is held to ear when playing voice messages#6409bxdxnn wants to merge 1 commit intoelement-hq:developfrom
Conversation
|
Thank you for your contribution! Here are a few things to check in the PR to ensure it's reviewed as quickly as possible:
|
|
@ganfra any updates? |
|
@bmarty can this be reviewed? |
So, again, I did some testing on both iOS and Android using Signal and WhatsApp. The results are:
The results were consistent across both platforms and apps. I am not sure if this can be really used as a "safety feature", I see it more as a convenience feature and thus, I'd rather keep playing on the BT if that is connected. @fkwp what are we currently doing for Element Call calls regarding this? |
I do agree with @mxandreas a headset (independent of bt or wired) is overruling earpiece) |
|
It will play on BT/external devices, but if held to an ear, it will switch to the earpiece, i.e. it won't disable the sensor feature like in WhatsApp in case you still need it. WhatsApp and other apps disable the sensor feature when external devices are connected, which is personally frustrating in cases like when the phone is connected to a car. I could be out of a car and on parking, and with the sensor disabled I will have to disable Bluetooth first, which is also very inconvenient if I have Android Auto connected and the passengers need it at the same time. With this PR, I can just hold the device to ear if I need for it to play on the earpiece instead of speakers without disconnecting BT. If you don't want it to play to the ear (keep playing on BT), don't hold the device to the ear ̄\_ (ツ)_/ ̄ This is a privacy feature, so IMO we should prioritize privacy here instead of copying other apps. If you want to disable this feature if an external device is connected, please tell. |
|
Thanks for providing the example scenarios. My previous point was primarily about the initial claim that this is "standard in messaging apps" while it actually does not seem to be so. At least not in WhatsApp and Signal which Element is compared to and has overlapping use cases with. When we consider changing the behavior, we have to gain some certainty that this is a step in the right direction, and something that is appreciated by most users. Without the ability to conduct a ad-hoc UX research, using other apps as a reference is the first low-hanging fruit. If this is a privacy concern, then it should equally to apply to messages sent via WhatsApp or Signal which are also secure messengers. What we do not know well is if the WA and Signal behavior is intentional or accidental. And if it is (or was) accidental, then why haven't they done anything to change it. Having said that - I kind of agree that it may be safe to try overriding BT, because indeed one can simply not move the phone to his ear when they do not want to use earpiece. @fkwp do you have any specific arguments against, like situation where this could be non-ideal? |
Content
Be able to listen to voice message using the earpiece when a device is held to ear
Motivation and context
This is a highly desired feature and the standard behavior in all messaging apps. The earpiece sensor feature remains available even when external devices are connected, due to privacy considerations. Here's why:
Screenshots / GIFs
Tests
Tested devices
Checklist