Skip to content
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

WKWebViewHostApiImpl.evaluateJavaScriptForInstances #54

Open
lanyuzx opened this issue Jan 24, 2024 · 1 comment
Open

WKWebViewHostApiImpl.evaluateJavaScriptForInstances #54

lanyuzx opened this issue Jan 24, 2024 · 1 comment

Comments

@lanyuzx
Copy link

lanyuzx commented Jan 24, 2024

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(FWFEvaluateJavaScriptError, Failed evaluating JavaScript., JavaScript execution returned a result of an unsupported type (WKErrorDomain:5:{NSLocalizedDescription: JavaScript execution returned a result of an unsupported type}), null)
#0 WKWebViewHostApiImpl.evaluateJavaScriptForInstances (package:webview_flutter_wkwebview/src/web_kit/web_kit_api_impls.dart:1082:7)

#1 WebKitWebViewController.runJavaScriptReturningResult (package:webview_flutter_wkwebview/src/webkit_webview_controller.dart:418:28)

#2 WebViewControllerPlus.onLoaded (package:webview_flutter_plus/src/controller.dart:40:12)

@houssam15
Copy link

houssam15 commented Nov 11, 2024

same problem here i think a permission is needed but i don't found it or ios restrict building apps using webview , because javascript is restricted ,i set JavaScriptMode to unrestricted it still restricted , and also same code work fine in android , so please what we need to add to our info.plist to make it work .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants