Skip to content

Can't programatically capture Screenshot #47

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)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions