How can I resume/pause ionic app depending on confirmPopup


#1

var confirmPopup = $ionicPopup.show({
title : ‘Resume App?’,
template : ‘Are you sure you want to resume AppName?’,
buttons : [{
text : ‘Cancel’,
type : ‘button-royal button-outline’,
},{
text : ‘Ok’,
type : ‘button-royal’
}]
});
};