Back key not detected on Android Gesture Navigation

I have the “Back” input binding, and it works perfectly find for button navigation. Touching the back (in case of back in screen) and touching the back button out of the screen (old phone) works all well.

But when I enable the gesture navigation it does not work as expected.

The system is detecting the back, as I get the vibration feedback, but the game does not.

The game does detect sometime, like if I swap multiple times, it detect sometimes and no regular pattern.

I tried not sending the event to button (from defold input) and moving the back_button test to top, it did not help.

function on_input(self, action_id, action)
	if action_id == hash("back_button") and action.released then
		back_pressed(self)
	end
	
	-- button.on_input(action_id, action)
	-- self.druid:on_input(action_id, action)

Yes input binding is set for Back to back_button. Removing the action.released does not work as well.

I wonder if we broke something during glfw migration? It is supposed to work correctly with gestures:

Ping @AGulev and @jhonny.goransson

@InfoDevkota do you happen to have a custom AndroidManifest.xml file without android:enableOnBackInvokedCallback="true" ?