Hi Bruce,
You can use the preinstalled native plugin called dialogs. It has built in alert, confirm, prompt or beep.
https://github.com/apache/cordova-plu...
This lets you use native pop/dialog function which is a big plus when it comes to trying to get on market stores (using native functions).
To make it work in a browser and devices not supported, I wrap try/catch statements to throw a normal alert.
It lets you also have a call back function for when they have closed the dialog.
Example:
code
try {
/* Call back function /
function alertDismissed() {
return false;
}
/ Dialog function */
navigator.notification.alert(
'This feature will be available soon!', // message
alertDismissed, // callback
'Coming Soon!', // title
'Done' // buttonName
);
} catch(err) {
alert("Error, this is in the works! Stay tuned!");
}
/code
ps: I wrapped in code tags but it's stripped formatting. Hopefully it makes sense to you