Page 1 of 1

PhoneGap features "undefined"

Posted: Sun Apr 14, 2013 1:25 pm
by Slang

I am trying to use some phonegap features in my app but getting an "undefined" error message. As a test, I did something very simple: create a button on a page and on click event, call navigator.notification.beep(2)

This also gives an error saying "navigator.notification" is undefined. The example is from http://docs.tiggzi.com/documentation/...

What do I need to define/import etc to get this to work?

Thanks


PhoneGap features "undefined"

Posted: Sun Apr 14, 2013 2:26 pm
by Igor

Needs to run on the device, won't work in the browser.


PhoneGap features "undefined"

Posted: Sun Apr 14, 2013 2:48 pm
by Slang

I tried the "View on Phone" link and tried it on the phone as well. No beeps.

Do I have to package the app and deploy it on the phone to test this?


PhoneGap features "undefined"

Posted: Sun Apr 14, 2013 3:11 pm
by Igor

Yes, deploy app on the phone.