Skip to content

Can't programatically capture Screenshot #47

@colenso

Description

@colenso

I'm using this cordova plugin to try and capture screenshots of my app: https://github.com/gitawego/cordova-screenshot

I noticed that the I only get a black image for some reason. But if I use the normal WebView the plugin works and I can see the normal screenshot.

Here' s the relevant code from the plugin:
View view = webView.getRootView();
view.setDrawingCacheEnabled(true);
bitmap = Bitmap.createBitmap(view.getDrawingCache());
view.setDrawingCacheEnabled(false);

Perhaps webview-plus doesn't support setDrawingCacheEnabled(true)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions