PhoneGap, Cordova: Cannot call method ‘alert’ of undefined at file..

Note to self.

Say you are using Cordova, and you think you can just add in any old navigator.notification.* (navigator.notification.confirm) method you want. 

Well, first, please remember to read the documentation. Perhaps installing the dependencys would be nice.

If notification looks undefined, thats because it is.


cordova plugin add

try: cordova plugin add



Leave a Reply

Your email address will not be published. Required fields are marked *