Question

Seems like I've taken all the steps and measures but cant get iphone camera to work.

  1. Include <script src="cordova.js"></script>

  2. install the plugin: $ cordova plugin add org.apache.cordova.camera

  3. Configure config.xml:

3) Call it on deviceready

document.addEventListener("deviceready",onDeviceReady,false);
function onDeviceReady() { alert(navigator.camera) }

returns undefined

Any suggestions?

I tried it in Ripple and it actually works...

Pas de solution correcte

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top