Josiel Denardi6690187
Posts: 0
Joined: Mon Feb 24, 2014 9:23 pm

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.

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

navigator.notification.alert not run

On the phone or in the browser you received the error ?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

navigator.notification.alert not run

Hello Josiel,
This method is available for real mobile devices, but it doesn't work in the browser

Josiel Denardi6690187
Posts: 0
Joined: Mon Feb 24, 2014 9:23 pm

navigator.notification.alert not run

ok, thank you

Return to “Issues”