I have a mobile/web app with a sidebar menu. I'm trying to replicate the same behavior that native apps have. When the Sidebar menu is open and user click on back (android) I'd like to avoid the history.back() so the URL never changes and also some callback that allows me to close the menu.
Is this possible? Or at least with progressive web apps?