Question

I ended up searching everywhere with the errors on launching camera on cordova version 3.3.0 - with no success. I did the following as per the documentation

  1. Added plugin to the project (cordova ver 3.3.0)
  2. Cross-verified the config.xml and the manifest.xml and observed that the said elements are already there.

I still get errors like-

  1. Uncaugtht TypeError: Cannot read property 'DATA_URL' of undefined.

I am vexed of searching for this error. Kindly help me. I need this working very soon :(

I got some help from SO here.

What else should I do to get access to the camera?

Was it helpful?

Solution

Had the same problem. I tried jcesar's suggestion, "did you do a "cordova prepare android" after adding the plugin?" and it worked.

OTHER TIPS

For Cordova 3.3.0, you need to add the plugin using CLI,

 $ phonegap local plugin add org.apache.cordova.camera
 $ phonegap local plugin add org.apache.cordova.media-capture

Have you done this?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top