Hello everybody 
I have a little issues $ionicPlatform.onHardwareBackButton(); Indeed i don’t know how to use :s
i would like create a ionicpopup.confir for to quit app with back button is pressed on android. But i don’t see how to do.
i have that in my main controller but it’s doesn’t work :s
$ionicPlatform.onHardwareBackButton(function(){
alert("back button press");
$ionicPopup.confirm({
title: 'Quit TechForum 2014 app',
content: 'Do you want to close TechForum app ?'
}).then(function(res) {
if(res) {
$ionicPlatform.exitApp();
}
});
});
First i have test with ionic.platform in my main JS " app.js" before var app = angular.module(‘app’); but i don’t call a ionic fonction. I want to quit app when user is on main page ( with ion-tab) not when is on other page :s