Pressing "back" closes app rather than going back to previous view

Steps to reproduce

Open Dynalist app (Android) (make sure it was previously closed). Click on the bullet point to enter an item. Press the Android system ā€œbackā€ button.

Expected result

You return to the previous view before you pressed on the bullet item. This is what normally happens, but doesnā€™t happen if the first thing you do after opening the app is press a bullet point.

Actual result

The app closes (as if you had opened the app and then immediately pressed back or home).

See video here: https://streamable.com/2ax2t

Environment

Android 9.

Additional comments

I think this is just a bug with the navigation stack. For some reason entering the bulleted item does not push a new frame onto the navigation stack so when you press back it improperly thinks youā€™re on the initial frame and exits the app.

Sorry for the super late reply. Thanks for catching this!

We have tracked this bug on our todo list, and will fix it as soon as we can! Thanks again for letting us know. Iā€™ll update here when itā€™s fixed :slight_smile:

Wanted to give this a bump as it does not appear to be fixed.

1 Like

Seems to be an issue with Cordova: https://github.com/apache/cordova-android/issues/687

Will fix the issue by using a different dependency.

1 Like

Can confirm this is fixed now.

1 Like