Hi Nigel,
Following are 2 phoneui.js api that can be used in apps and webapps. The app context using the phonegap notification api which does not include the app URL. When used in a webapp the implementation falls back to standard javascript alert() and confirm() dialogs with the app url. In the jsdoc ‘TC’ refers to Test Center.
/**
 * shows alert and calls fnContinue then. Note: works in different
 * ways in iOS and TC. For TC it returns immediately, while for iOS
 * it returns only when user pressed OK
 * 
 * @param message Text message
 * @param fnContinue function that called when user selected button.
 * @param optionalTitle optional, title for dialog
 * @param optionalButtonLabel optional, button label
 */
phoneui.alert(message, fnContinue, optionalTitle, optionalButtonLabel)
/**
 * shows confirmation dialog. result comes to fnContinue. Blocks in web app, doesn't block in
 * phonegap apps
 * 
 * @param message Text message
 * @param fnContinue function that called when user selected button. Takes 1-based index of selected button
 * @param optionalTitle optional, title for dialog
 * @param optionalButtonLabel optional, string with comma-separated button labels
 */
phoneui.confirm(message, fnContinue, optionalTitle, optionalButtonLabel) {