code: 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).");
          }
  
          // Some platforms take an array of button label names.
          // Other platforms take a comma separated list.
          // For compatibility, we convert to the desired type based on the platform.
          if (platform.id == "amazon-fireos" || platform.id == "android" || platform.id == "ios" || platform.id == "windowsphone" || platform.id == "firefoxos" || platform.id == "ubuntu") {
  
              if (typeof _buttonLabels === 'string') {
                  var buttonLabelString = _buttonLabels;
                  _buttonLabels = _buttonLabels.split(","); // not crazy about changing the var type here
              }
          } else {
              if (Array.isArray(_buttonLabels)) {
                  var buttonLabelArray = _buttonLabels;
                  _buttonLabels = buttonLabelArray.toString();
              }
          }
          exec(resultCallback, null, "Notification", "confirm", [message, _title, _buttonLabels]);
      }
docs: 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'])