Slang
Posts: 0
Joined: Mon Dec 10, 2012 6:53 am

PhoneGap features "undefined"

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

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

PhoneGap features "undefined"

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

Slang
Posts: 0
Joined: Mon Dec 10, 2012 6:53 am

PhoneGap features "undefined"

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?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

PhoneGap features "undefined"

Yes, deploy app on the phone.

Return to “Issues”