When you want to copy the canvas inside a cordova app (e.g. in Ionic), you can't copy the canvas because of cross origin problems ("The canvas has been tainted by cross-origin data ").
The fix is only one line inside CanvasCamera.js:
CanvasCamera.Renderer.prototype.initialize = function() {
if (this.element) {
this.context = this.element.getContext('2d');
this.image = new Image();
this.image.crossOrigin = 'anonymous'; // <-- this line will fix the problem
this.image.addEventListener('load', function(event) {
[...]
When you want to copy the canvas inside a cordova app (e.g. in Ionic), you can't copy the canvas because of cross origin problems ("The canvas has been tainted by cross-origin data ").
The fix is only one line inside CanvasCamera.js: