I have this code on a button click event, it used to work on ios device, but now when the button is clicked nothing happens, the confirm dialog doesn't appear.
pre
function onConfirm(buttonIndex) {
if(buttonIndex == 2){
deleteReview.execute();
}
}
Code: Select all
// Show a custom confirmation dialog
//
function showConfirm() {
navigator.notification.confirm(
'Are you sure you want to delete this review?', // message
onConfirm, // callback
'Delete review', // title
'Cancel,Delete' // buttonLabels
);
}
showConfirm();
/pre
Any ideas why this isn't working?
Thank you