I have built a Godot 3.0.2.stable.official app that successfully exports and runs on both Windows and on my Android phone. I have built a pause menu with three buttons (Quit, Menu, Continue). Everything works well and I can navigate around various scenes and close my app correctly.
However, on Android
the Quit button (which calls get_tree().quit()
) doesn't work properly. The app seems to shut down and throws back to the phone's home/launcher screen, however if I open the list of running apps (square button) my app is still running and shows a black screen. If I select my app from the list of running apps, my app restarts.
I've played around with different placements of get_tree().quit()
in my code, and the only place it works is before the first scene is displayed. After that, the app just won't close on Android.
I have tried altering the get_tree().set_auto_accept_quit()
and get_tree().set_quit_on_go_back()
values before quitting the app to no avail. I have even tried removing all the nodes in the SceneTree before quitting the app. Of course, everything works correctly on Windows; the issue only occurs on Android.
Have any other Android devs run into this issue?