Made the event ( when touch on (exit) > close the game )
But when i exit the whole game stops or pause .
So how to exit the game properly on android ?
Made the event ( when touch on (exit) > close the game )
But when i exit the whole game stops or pause .
So how to exit the game properly on android ?
Anyone ?
In case the Quit event doesn’t work, try using this code in a javascrpt event:
navigator.app.exitApp();
I have uploaded an example it worked for me on my device:
gametemplates.itch.io/gdevelop-examples
It on the bottom as usual.
Hope it works for you.
It works . thanks
Thank you exactly what I needed.
hi, i have the same problem
where do I put the code “navigator.app.exitApp();” please?
Put it in a JS event.
There is a Action for exit the game
The point of the topic was closing the page completely as the quit game action just destroys the Renderer and end the game loop, it doesn’t close the app (on mobile).