Can't get cordova camera plugin working with Meteor 1.4

I have added the Cordova plugin with the version number.

cordova-plugin-camera@2.2.0

and I have an event the uses the plugin on a button click.

Template.profileEdit.events({
    'click .updateAvatar': function () {
        Meteor.startup(function() {
            navigator.camera.getPicture(onSuccess, onFail, { quality: 50,
                destinationType: Camera.DestinationType.DATA_URL
            });
        });
    }
});

but when I click on the button I get navigator.camera 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?