Had the same problem. I tried jcesar's suggestion, "did you do a "cordova prepare android" after adding the plugin?" and it worked.
cordova 3.3.0 - camera not launching
-
09-10-2022 - |
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
- Added plugin to the project (cordova ver 3.3.0)
- Cross-verified the config.xml and the manifest.xml and observed that the said elements are already there.
I still get errors like-
- 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?
Solution
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