Page 1 of 1

navigator.notification.alert not run

Posted: Tue Apr 25, 2017 6:15 pm
by Josiel Denardi6690187

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.


navigator.notification.alert not run

Posted: Tue Apr 25, 2017 7:33 pm
by Bruce Stuart

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


navigator.notification.alert not run

Posted: Wed Apr 26, 2017 7:56 am
by Serhii Kulibaba

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


navigator.notification.alert not run

Posted: Mon May 01, 2017 8:15 pm
by Josiel Denardi6690187

ok, thank you