[Solved] How to exit the game (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:


I have uploaded an example it worked for me on my device:

It on the bottom as usual.
Hope it works for you.

1 Like

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.

1 Like

There is a Action for exit the game :wink:

1 Like

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).