Plaform API

Hello, Iā€™m migrating an ionic 3 app to ionic 4, and I notice that some Api Platform function no longer exist and nothing about the break is mentioned in CHANGELOG or BREAKINGLOG. :frowning:

What is the alternative of below functions on new ionic version ?

 this.platform.exitApp();
 this.platform.registerBackButton();
...

Ionic info:

Ionic:

   ionic (Ionic CLI)          : 4.0.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.0
   @angular-devkit/core       : 0.7.0-rc.3
   @angular-devkit/schematics : 0.7.0-rc.3
   @angular/cli               : 6.0.8
   @ionic/ng-toolkit          : 1.0.0
   @ionic/schematics-angular  : 1.0.0

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : none

System:

   Android SDK Tools : 26.1.1
   ios-deploy        : 1.9.2
   NodeJS            : v8.9.4 (/usr/local/bin/node)
   npm               : 6.2.0
   OS                : macOS High Sierra
   Xcode             : Xcode 9.4.1 Build version 9F2000

Environment:

   ANDROID_HOME : /Users/pisix/Library/Android/sdk
1 Like

For exitApp maybe How to quit the app in Ionic 4