diff --git a/phonegap/phonegap-tests.ts b/phonegap/phonegap-tests.ts index 273551c11d..78b45609b9 100644 --- a/phonegap/phonegap-tests.ts +++ b/phonegap/phonegap-tests.ts @@ -655,6 +655,12 @@ function test_notification() { onConfirm, 'Game Over', 'Restart,Exit' + ); + navigator.notification.confirm( + 'You are the winner!', + onConfirm, + 'Game Over', + ['Restart','Exit'] ); navigator.notification.beep(2); navigator.notification.vibrate(2500); diff --git a/phonegap/phonegap.d.ts b/phonegap/phonegap.d.ts index 0e6d003236..6e873163be 100644 --- a/phonegap/phonegap.d.ts +++ b/phonegap/phonegap.d.ts @@ -478,6 +478,7 @@ declare var Media: { interface Notification { alert(message: string, alertCallback: Function, title?: string, buttonName?: string): void; confirm(message: string, confirmCallback: Function, title?: string, buttonLabels?: string): void; + confirm(message: string, confirmCallback: Function, title?: string, buttonLabels?: string[]): void; beep(times: number): void; vibrate(milliseconds: number): void; }