Back button does not close the settings but enter pip mode
Steps to reproduce
- On Android, start a call
- Open the settings
- Press the back button
Outcome
What did you expect?
The settings panel is closed
What happened instead?
The call enters PIP mode
Operating system
Android
Browser information
No response
URL for webapp
No response
Will you send logs?
Yes
I think this is rather high priority since this will definitly happen.
@BillCarsonFr proposes this could be done by using the EC react router. (back then might route us back)
Since the mobile apps would have to manually connect the 'back' event to the web view anyhow, I think we can achieve this more simply by simulating an 'Escape' key press when the back button is pressed. The app can then register a keydown event listener of its own on the window, and enter PiP mode if such a keydown event reaches the window without preventDefault being called at any point.