navigator.notification.alert not run
I'm used the follow command for display the message box: 
 navigator.notification.alert( 
     'You are the winner!',  // message 
     alertDismissed,         // callback 
     'Game Over',            // title 
     'Done'                  // buttonName 
 );
But the debug show this message. This is a standard method from phonegap? What the error?
Uncaught TypeError: Cannot read property 'alert' of undefined 
     at derived.onError (eval at globalEval (jquery-2.1.1.js:330), :490:35) 
     at derived.__errorHandler (appery.js:427) 
     at Object.proxy [as error] (jquery-2.1.1.js:513) 
     at fire (jquery-2.1.1.js:3073) 
     at Object.fireWith [as rejectWith] (jquery-2.1.1.js:3185) 
     at done (jquery-2.1.1.js:8253) 
     at XMLHttpRequest. (jquery-2.1.1.js:8598)
I'm using Liberary 3.1 version.