Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

registerBackButtonAction exit the app

$
0
0

@deathrake wrote:

hello experts,

I was trying registerBackButtonAction on my Exisitng app as well as on new blank app.
but the issue i was facing is that on pressingbackbutton it exits the app but when i minimize the app and then resume my app from recent task then the registerBackButtonAction works well.

this.plt.registerBackButtonAction(() => {
        console.log('Register Back Button works')
      },999);

Ionic Info

Ionic:

Ionic CLI : 5.4.16 (C:\Users\Fariha\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.9
@ionic/app-scripts : 3.2.4

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 4 other plugins)

Utility:

cordova-res : 0.11.0
native-run (update available: 1.0.0) : 0.3.0

System:

NodeJS : v12.16.1 (C:\Program Files\nodejs\node.exe)
npm : 6.13.4
OS : Windows 10

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>