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

The iOS and Android execution returns are inconsistent #968

Open
BrinedFish0222 opened this issue Nov 10, 2023 · 0 comments
Open

The iOS and Android execution returns are inconsistent #968

BrinedFish0222 opened this issue Nov 10, 2023 · 0 comments

Comments

@BrinedFish0222
Copy link

flutter version: 3.7.7
flutter_webview_plugin version: 0.4.0

my code:

final flutterWebviewPlugin = FlutterWebviewPlugin();
var js = "var jsonRes = {\"abc\": 1, \"array1\": [1, 2, 3]};jsonRes";
await flutterWebviewPlugin.launch("about:blank", withJavascript: true, hidden: true);
String? javascriptResult = await flutterWebviewPlugin.evalJavascript(js) ?? '';

Android returned the correct result
iOS result:{
abc = 1;
array1 = (
1,
2,
3
);
}

What's going on here? Can you help me, please

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

1 participant