I am currently in the process of converting my app from Godot 3 to 4.
This is way more complicated than expected.... :

Currently, I'm facing a problem to convert this code :

func _notification(what):
	if what == MainLoop.NOTIFICATION_WM_QUIT_REQUEST:
		# For Windows
		on_GoBack()
	if what == MainLoop.NOTIFICATION_WM_GO_BACK_REQUEST: 
		# For android
		on_GoBack()

Godot 4 doesn't seem to handle the notification as in Godot 3...
Anyone know how to do this ?

thanks.

9 days later

finally the fix was simply to rename some constant .

func _notification(what):
    if what == NOTIFICATION_WM_CLOSE_REQUEST:
        # For Windows
        on_GoBack()
    if what == NOTIFICATION_WM_GO_BACK_REQUEST:
        # For android
        on_GoBack()
    a year later