linagora / twake-on-matrix

A multi-platform (Flutter) application for connecting to Matrix - an open network for secure, decentralized communication, with your favorite devices.
GNU Affero General Public License v3.0
63 stars 18 forks source link

Don't quit the Twake Chat mobile app when using phone "back" button #2020

Open Facyla opened 2 months ago

Facyla commented 2 months ago

Describe the feature

When using the app, the (hardware) smartphone button "back" quits the app, from any of the main screens, ie. Discussions (which i consider as the homepage - though it is placed second), Contacts and Réglages.

Describe the solution you'd like or your expectation

I'd expect to get back to some "home page" or main screen of the app, rather than quitting it directly. Especially from the Contacts and Settings screens which should get "back" to the main page. From the main page, the behaviour can be discussed further, i'd suggest quitting only on a double "back" button touch, of presenting a modal to confirm quitting - like it works in most apps. In general, the "back" button should work as as reverse navigation into the app breadcrumb (or alternatively into the app browsing history, but the back into breadcrumbs behaviour seems more natural to me).

Describe alternatives you've considered

Design choices :

Additional context

No response