devgeeks / Canvas2ImagePlugin

PhoneGap / Cordova plugin for iOS to save the contents of an HTML canvas to the device's Photo Library
211 stars 218 forks source link

iOS 7 #32

Open nomamo opened 10 years ago

nomamo commented 10 years ago

Does this work with iOS 7?

Im trying to get this to work on my iPhone 4s with iOS 7. The canvas is created with three.js and the "canvas-renderer". But i don't get any issues from the Javascript side, all looks fine there. The Problem is that there are no images stored at all.

Here's my Code:

onClick: function(){
    var canDiv = document.getElementById('canvas-container');
    var newCanvas = canDiv.getElementsByTagName('canvas')[0];

    window.canvas2ImagePlugin.saveImageDataToLibrary(
        function(msg){
            console.log(msg);
        },
        function(err){
            console.log(err);
        },
        newCanvas
    );

}

Are there known compatibility prob's with that iOS?
Thanks

devgeeks commented 10 years ago

Have you tried running up the Demo App?

I just tested the demo app on iOS 7 and it is working fine.

nomamo commented 10 years ago

The prob. is that i don't get the canvas2ImagePlugin object on my iOS Browser. I've done remote debugging, and i get the Error: TypeError: 'undefined' is not an object (evaluating 'window.canvas2ImagePlugin.saveImageDataToLibrary')

even Safari on my mac don't get's the object -

Any help would be nice.

c0808i0063 commented 8 years ago

i have same error. Please help me. Any help would be nice.

scmyers11 commented 8 years ago

I have the same issue. Any direction would be appreciated. @nomamo were you able to solve the problem?