Here is the correct answer to him:
$scope.func= function (item) {
navigator.notification.confirm('Delete?', function(button) {
if ( button == 1 ) {
func2(item);
}
});
};
The button value is 1/2, based on which button the "Confirm" / "Cancel" button is pressed. In my case, the “confirm” button had a value of 1 and, therefore, an equality check.
source
share