Installed APIs

All of the APIs i'm using have been installed and GeoLocation works.
Getting error: "TypeError: navigator.camera is undefined" and
"TypeError: navigator.compass is undefined" (when function is not
commented out).