an-rahulpandey / cordova-plugin-camerapicturebackground

Automatically take Picture from Android Smartphones without any User Interactions.
Apache License 2.0
16 stars 21 forks source link

takePicture undefined #12

Open hariaakash opened 7 years ago

hariaakash commented 7 years ago

I am getting this TypeError: Cannot read property 'takePicture' of undefined.

an-rahulpandey commented 7 years ago

can you post some code on how you are using? Is the plugin listed in cordova_plugins.js file?

hariaakash commented 7 years ago

I am basically using monaca + onsen ui 2 + angular 2 for achieving this. I initially added the cordova plugin using the "cordova add giturl" and then tried achieving using the window.plugins.CameraPictureBackground.takePicture($scope.success, $scope.error, $scope.options);