Native app issue with back arrow in phone

Hello everyone,
I am developing a native app, and I am met with an issue, which is that the return function of a phone is quitting the app, since I got a single page app.

Does anyone know how to tweak this ?

Thanks for your time !