Hello
Tu as un exemple ici :
GDevelop5_exit-app-on-mobile.zip
Sinon comme expliqué ici, essaye avec un événement directement en javascript :
navigator.app.exitApp();
Attention cependant comme indiqué dans cet exemple :
Quit the game will work on preview, Android and exported Windows/macOS/Linux games. HTML5 games exported on website can’t be exited.
Donc en gros, cela ne fonctionnera qu’une fois exporté…