webview_flutter_plus icon indicating copy to clipboard operation
webview_flutter_plus copied to clipboard

WKWebViewHostApiImpl.evaluateJavaScriptForInstances

Open lanyuzx opened this issue 1 year ago • 1 comments

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

lanyuzx avatar Jan 24 '24 14:01 lanyuzx

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 .

houssam15 avatar Nov 11 '24 11:11 houssam15