Convertigo Public Knowledge base

Swipe back gesture fired twice on iOS device

To circumvent this behaviour, you may try one of the following:

Edit NgxApp class:

/*Begin_c8o_AppImport*/ import {setupConfig} from '@ionic/core'; setupConfig({ swipeBackEnabled: false }); /*End_c8o_AppImport*/

In …/ionicTpl/src/app/app.module.ts:

IonicModule.forRoot({ swipeBackEnabled: false })

In …/ionicTpl/src/app/app.component.html:

<ion-app> <ion-router-outlet [swipeGesture]="false"></ion-router-outlet> </ion-app>

Modifications to ionicTpl files require to use and change the project’s template. See here how to use a local project template:

(c) Convertigo 2023