I am showing a popup
when user is offline and Currently User can close $ionicPopup
using hardware Back button . But I don’t want user to close the popup unless he perform any action.
I tried following but it is not working:
$ionicPlatform.onHardwareBackButton(function (e) {
if($cordovaNetwork.isOffline()) {
e.preventDefault();
return false;
}
})