HardwareBackButton Usage

Hello @brandyshea,

Currently clicking on the hardware back button put the application on background, my client want me to show a toast with the message click again “Press back button again to exit”, So i have gone through the url below and found this can be done by these two function with the description “Methods meant to be overridden by the engine”, there is no example of using these function.

https://github.com/driftyco/ionic2/blob/master/ionic/platform/platform.ts#L11-L456

  1. onHardwareBackButton() {}
  2. registerBackButtonAction() {}

have you tried to see what the file in raw format?

https://raw.githubusercontent.com/driftyco/ionic2/master/ionic/platform/platform.ts

These aren’t implemented yet, they’re empty functions:

https://github.com/driftyco/ionic2/blob/master/ionic/platform/platform.ts#L170-L179