performanceactive / phonegap-custom-camera-plugin

45 stars 37 forks source link

Cordova method undefined #9

Open ians88 opened 9 years ago

ians88 commented 9 years ago

Is it possible to use this with Cordova just aswell? I tried adding it as a Cordova plugin (Cordova version 4.1.2) and used the example code to test it (I was using the apache camera plugin before, wich works fine. But I want some custom UI)

With the example code I got a Uncaught TypeError: Cannot call method 'getPicture' of undefined error in javascript.

Could it be because I am using Cordova and not Phonegap? (didn't think it would be an issue)

Thanks in advance for helping me out.

EDIT So I found out Phonegap plugins should also work with Cordova. There is no difference. (according to: http://devgirl.org/2014/04/09/phonegapcordova-cli-adding-plugins/) So tried installing it again and used the example code to try and get the camera to work, but still got the: Uncaught TypeError: Cannot read property 'getPicture' of undefined