Hello,
I'm using this code to call the Cordova plugin's for notifications. On my IOS device (and appearantly on the android as well) - Im getting an error message when calling it.
My code:
function confirmdismissed( nbuttonpressed ) {
if ( nbuttonpressed === 1 ) {
nbutton = nbuttonpressed ;
bconfirmed = true ;
}
else {
nbutton = nbuttonpressed ;
bconfirmed = false ;
}
}
function myConfirm(smessage, fcallback , stitle , abuttons ) {
console.log('in myconfirm');
if (stitle === undefined) {
stitle = 'Confirm';
}
if (abuttons === undefined) {
abuttons = ["Ok", "Cancel"];
}
if (fcallback === undefined) {
fcallback = 'confirmdismissed';
}
navigator.notification.confirm(
smessage, // message
fcallback, // callback
stitle, // title
abuttons ); // buttonName
return bconfirmed ;
}
Error message in the IOS simulator log:
Jan 4 15:05:18 localhost TrueBlue COA[24579]: The old format of this exec call has been removed (deprecated since 2.1). Change to: cordova.exec(null, null, "", "confirmdismissed",[null,"Notification","confirm",["Logout ? ","Confirm",["Ok","Cancel"]]]);
so, question, can you help me interpret this error ? what's the right format for the call ?
thanks,
Bruce