Cordova Camera Plugin Not Working w/ AngularJS Scope (Yes, module/Class name(s) in Controller)

97 views
Skip to first unread message

J Ried

unread,
Dec 7, 2014, 3:59:56 PM12/7/14
to ang...@googlegroups.com
Trying to get the Cordova Camera to work. I've upgraded to the latest apache cordova camera plugin to handle issues with IOS8. Now I get issues stating:
"getPicture()" undefined from the Camera class (refer to the Camera Sample here `https://github.com/driftyco/ionic-example-cordova-camera/blob/master/www/js/services.js`)

Also, in another project I get an error when I use the options as such in the Angular Controller
"Camera.DestinationType.DATA_URL" --> Says Camera is undefined whenever I use the ngCordova plugin...Essentially, it's quite weird. When I simply replace the attribute with it's value of 0 the error doesn't happen but the camera still does not popup.

Any way to solve this? 
Reply all
Reply to author
Forward
0 new messages