Skip to main content
Skip table of contents

Swipe back gesture fired twice on iOS device

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

Edit NgxApp class:

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

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

CODE
IonicModule.forRoot({
    swipeBackEnabled: false
})

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

CODE
<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: Use specific Ionic Template for a project

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.