medic / cht-core

The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
438 stars 209 forks source link

Allow android back button to navigate back in CHT #7655

Open 1yuv opened 2 years ago

1yuv commented 2 years ago

Is your feature request related to a problem? Please describe. FCHVs and CHNs using CHT Android App frequently epxlain their frustration when clicking the back button on Android phones/tablets that an app returns to home page of an app instead of going back to the previous page.

Describe the solution you'd like When user clicks hardware or software back button on android tablets, allow app to go one step back instead of making it return to home page.

Describe alternatives you've considered Though we have back button in app at the top, most of the android users are used to with hardware/software button that comes with android.

Additional context I think this feature will make user feel more comfortable with an app as it complies with user's general android UX.

garethbowen commented 2 years ago

This feature is by design where the back button goes "up" not "back". There's some discussion on this issue: https://github.com/medic/cht-core/issues/2820

Whatever solution is chosen is incredibly complex with many edge cases and we've never come up with a complete solution, though many have tried.

@n-orlowski Do you have thoughts on how back navigation should work?

n-orlowski commented 2 years ago

@garethbowen I haven't done a deep dive into this issue yet but think this is something we should definitely be looking at prioritizing; it was one of the key takeaways from the UG field visit as well