You are using the org.apache.cordova.dialogs
plugin. I tried this and got it to work, here's how:
Search for notification.js file in your project, for eg mine is at:
Users/ft/projectname/platforms/ios/www/plugins/org.apache.cordova.dialogs/www/notification.js
Now, open it and do a find for "confirm", and find this part:
/**
* Open a native confirm dialog, with a customizable title and button text.
* The result that the user selects is returned to the result callback.
*
* @param {String} message Message to print in the body of the alert
* @param {Function} resultCallback The callback that is called when user clicks on a button.
* @param {String} title Title of the alert dialog (default: Confirm)
* @param {Array} buttonLabels Array of the labels of the buttons (default: ['OK', 'Cancel'])
*/
confirm: function(message, resultCallback, title, buttonLabels) {
var _title = (title || "Confirm");
var _buttonLabels = (buttonLabels || ["OK", "Cancel"]);
// Strings are deprecated!
if (typeof _buttonLabels === 'string') {
console.log("Notification.confirm(string, function, string, string) is deprecated. Use Notification.confirm(string, function, string, array).");
}
and just remove the "Confirm" word and leave it blank as:
var _title = (title || "Confirm"); --> var _title = (title || "");
And now for the alert part just find for "Alert" and you will find similar code above just do:
var _title = (title || "Alert"); --> var _title = (title || "");
I am using Cordova 3.6 and the plugin I mentioned above (so get use that plugin URL and try once too if initially you don't get it) and this worked great for me, and as you can see I'm editing from the www
inside platforms/iOS
so I run from Xcode itself, try that too.
Try and let me know.