-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
takeScreenshot : width and height must be > 0 #90
Comments
Trying call takeScreenshot after onLoadStop in Call example: Exception: Maybe need to return null if an image error occurs? |
@juliengit2 can you test using the latest version? However, the plugin name now is @vladimirmedyannikov which version of the plugin are you using?? Also, can you share your code? Thanks! |
@pichillilorenzo now test v2.1.0+1 InAppWebView(
initialUrl: url,
initialOptions: InAppWebViewWidgetOptions(
inAppWebViewOptions: InAppWebViewOptions(
useShouldOverrideUrlLoading: true,
useOnLoadResource: true,
javaScriptEnabled: true,
incognito: true,
mediaPlaybackRequiresUserGesture: false,
clearCache: true,
javaScriptCanOpenWindowsAutomatically: false,
),
androidInAppWebViewOptions: AndroidInAppWebViewOptions(),
iosInAppWebViewOptions: IosInAppWebViewOptions(
allowsAirPlayForMediaPlayback: false,
allowsInlineMediaPlayback: true),
),
onLoadStop: (InAppWebViewController controller,
message) async {
final res = await controller.takeScreenshot();
}) |
@vladimirmedyannikov can you also provide the URL to test? thanks! |
When calling InAppWebViewController.takeScreenshot
example:
we get from time to time :
and there is also this memory issue from time to time :
Any idea?
The text was updated successfully, but these errors were encountered: