I am looking at this Stack Overflow question
I am working on a project using Meteor. It also uses the Canvas2ImagePlugin which is a Cordova plugin.
I have successfully added it to the project using meteor add cordova:https://github.com/devgeeks/Canvas2ImagePlugin.git@0.6.0
However, the code snippet
cordova.exec(
success,
error,
'Canvas2ImagePlugin',
'saveImageDataToLibrary',
[imageData]
);
fails in Meteor since Cordova doesn't exist.
How to make this call in a Meteor way or otherwise expose Cordova to Meteor project?