Can't get cordova camera plugin working with Meteor 1.4


I have added the Cordova plugin with the version number.


and I have an event the uses the plugin on a button click.{
    'click .updateAvatar': function () {
        Meteor.startup(function() {
  , onFail, { quality: 50,
                destinationType: Camera.DestinationType.DATA_URL

but when I click on the button I get is undefined. Now if I switch the camera with geolocation that plugin works fine so is there a special way to get the camera plugin working?