gitawego / cordova-screenshot

screenshot plugin for cordova/phonegap
Other
211 stars 168 forks source link

Android 6.0.1 Black Screen #71

Open muvaf opened 8 years ago

muvaf commented 8 years ago

Hi,

I'm using android 6.0.1 and cordova 5.3.7. cordova-screenshot works well with iOS but in Android 6.0.1 it's just black screen and I don't use Crosswalk. Since there doesn't seem to be another plugin that takes screenshots, could you fix this asap? Here is the piece of code I use:

share: function () {
        var imageLink;
        //console.log('Calling from CapturePhoto');
        navigator.screenshot.save(function (error, res) {
            if (error) {
                console.error(error);
            } else {
                imageLink = res.filePath;
                console.log("filepath is: " + "file://" + res.filePath);
            }
        }, 'jpg', 50, 'myScreenShot');

I use this screenshot to share game over score.

pengkobe commented 7 years ago

I didn't use Crosswalk too. and my video screenshot keeps black. searching for some help....

Tembac commented 7 years ago

Same problem. I'm using phaser for the game.