capacitor-inappbrowser icon indicating copy to clipboard operation
capacitor-inappbrowser copied to clipboard

feat: Take Screenshot

Open DigitallyTailored opened this issue 8 months ago • 0 comments

Current problem

Currently to take a screenshot of a web page I am injecting a script that contains html2canvas, posting that to my own server and then using a deeplink to open the upload image in my app. This mostly works fine (apart from where html2canvas sometimes fails.

Preferred solution

It would be great if there was an ability to take a screenshot from within the webview. Ideally there would be a button for this as well so that while browsing a page we could take a screenshot of it and feed this back to the source app somehow. I'm not sure if this is possible or not - though the whering app seems to do this:

Image

Alternative options

I can't think of any. However, if it's possible to expose a screenshot of the app to the webview itself even this would replace the requirement for html2canvas and would create more consistent screenshots. The process would likely be faster too.

Additional context

The full flow from the whering app:

Image

Image

Image

Before submitting

  • [x] I have read and followed the feature request guidelines.
  • [x] I have attached links to possibly related issues and discussions.

Fastest way to get this feature added

DigitallyTailored avatar Apr 30 '25 12:04 DigitallyTailored