We're trying to develop a simple time tracking mobile app in Retool. My initial attempt included 4 separate screens, one for each 'status' the user could be in - Selecting jobs/activities, currently working, on-break, and switching jobs/activities. The problem I ran into with this design was the 'Back' button on Android devices would allow the user to navigate between pages without changing their status.
I switched to using a single screen app, and hiding/un-hiding containers based on button presses and local variables(ex: button 'Begin Work' hides the job selection dropdown and displays the Take Break and End Work buttons). This eliminated the problem with the Android back button, but the hiding/un-hiding of containers seems to be inconsistent, especially on older Android devices. On the older Androids occasionally the elements that should be hidden stay visible.
I'm curious if there's any way to control what the Android 'Back' button does? Or, if anyone has implemented a time tracking app successfully and would have any suggestions. We're essentially trying to write start/stop times, and job code/activity to postgres.