Hi,
Currently when running my Capacitor app within Android, swiping on the edges of the screen will result in backward or forward navigation. I have my own custom navigation controls and I need to disable this swipe navigation in Android.
Is this possible?
Thanks!
in your app.module, under the “imports” set
IonicModule.forRoot({
swipeBackEnabled: false
}),
we have the same situation, want o disable swipe right & left gestures in android. But the provided solution is not working as expected.
Capacitor version : 4.0.0
Need help on this if any alternative.
Solutions we have tried:
-
Added following code in all the routing files but still be able to see the swipe gesture working
IonicModule.forRoot({
swipeBackEnabled: false
})
-
this.routerOutlet.swipeGesture = false;
This is working only in iOS not in android
-
<ion-router-outlet id=“main-content” [swipeGesture]=“true” animated=“true”>
not working as expected.
Is this possible to restrict swipe gestures in android with ionic angular capacitor(v4).??
Thanks,
Kalyani Venna