apache / cordova-android

Apache Cordova Android
https://cordova.apache.org/
Apache License 2.0
3.59k stars 1.52k forks source link

Trigger "backbutton" event for gesture navigation in Android 9 #759

Closed gabrielrbarbosa closed 3 months ago

gabrielrbarbosa commented 4 years ago

Feature Request

Motivation Behind Feature

In Android Pie, there is a new way to navigate using gestures instead of buttons to get more screen space, but I couldn't use theses gestures in a Cordova app.

Feature Description

Trigger "backbutton" event for gesture navigation in Android 9

breautek commented 4 years ago

Just adding information relevant to this feature request.

The android documentation for gesture navigation can be found here

jcesarmobile commented 3 months ago

I've verified that the gesture navigation triggers backbutton event, there is nothing to do in Cordova's part.

Note that I wasn't able to test gesture navigation on Android 9 as the title said, only on Android 10+, it's not that it didn't work on Android 9, I wasn't able to enable gesture navigation on Android 9 emulators (didn't find the option)

breautek commented 3 months ago

it's not that it didn't work on Android 9, I wasn't able to enable gesture navigation on Android 9 emulators (didn't find the option)

The android docs also does say:

Beginning with Android 10 (API level 29), the Android system supports fully gesture-based navigation.

So gesture navigation in Android 9 might be non-standard or incomplete feature.