0 votes

Hi there,

For pausing my games, i am using the documented way NOTIFICATION_WM_FOCUS_OUT / NOTIFICATION_WM_FOCUS_IN and it is working as expected on Desktop (Ubuntu / Android).

However, the pause popup dialog is actually getting drawn / displayed when the app is resuming and not actually right before leaving the app. Although this shouldn’t be a problem for normal cases, the problem I have is that if the user presses the home button, upon trying to resume the game, Android displays the last drawn screen (in my case, without my pause popup), which i don’t want to happen...

it seems in Android I could execute something before the process actually being taken out, or am I mistaken ?

Btw, i would prefer if there is a solution for iOs too, not just for android.

Thx in advance.

in Engine by (858 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.