-
Notifications
You must be signed in to change notification settings - Fork 934
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
WebView is not allowed in privileged processes #486
Comments
need more info |
the same issue. import 'package:flutter/material.dart';
import 'package:flutter_webview_plugin/flutter_webview_plugin.dart';
import '../common/model/Source.dart';
class WebResWidget extends StatefulWidget {
Source source;
Size size;
WebResWidget({Key key, this.source, this.size}) : super(key: key);
@override
_WebResWidgetState createState() => _WebResWidgetState();
}
class _WebResWidgetState extends State<WebResWidget> {
final flutterWebViewPlugin = FlutterWebviewPlugin();
@override
void initState() {
// TODO: implement initState
super.initState();
}
@override
void dispose() {
// TODO: implement dispose
super.dispose();
}
@override
Widget build(BuildContext context) {
return WebviewScaffold(url: 'http://192.168.1.58:8090/#/login');
}
} the flutter doctor returns
the version is |
same issue version 0.3.0+2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
E/MethodChannel#flutter_webview_plugin: Failed to handle method call
java.lang.UnsupportedOperationException: For security reasons, WebView is not allowed in privileged processes
at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:187)
at android.webkit.WebView.getFactory(WebView.java:2530)
at android.webkit.WebView.ensureProviderCreated(WebView.java:2525)
at android.webkit.WebView.setOverScrollMode(WebView.java:2590)
at android.view.View.(View.java:4574)
at android.view.View.(View.java:4706)
at android.view.ViewGroup.(ViewGroup.java:597)
at android.widget.AbsoluteLayout.(AbsoluteLayout.java:55)
at android.webkit.WebView.(WebView.java:643)
at android.webkit.WebView.(WebView.java:588)
at android.webkit.WebView.(WebView.java:571)
at android.webkit.WebView.(WebView.java:558)
at android.webkit.WebView.(WebView.java:548)
at com.flutter_webview_plugin.ObservableWebView.(ObservableWebView.java:17)
at com.flutter_webview_plugin.WebviewManager.(WebviewManager.java:84)
at com.flutter_webview_plugin.FlutterWebviewPlugin.openUrl(FlutterWebviewPlugin.java:93)
at com.flutter_webview_plugin.FlutterWebviewPlugin.onMethodCall(FlutterWebviewPlugin.java:42)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:201)
at io.flutter.view.FlutterNativeView$PlatformMessageHandlerImpl.handleMessageFromDart(FlutterNativeView.java:188)
at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:202)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:325)
at android.os.Looper.loop(Looper.java:142)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
D/SessLogManager: no log right row, slow the process thread.
E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: PlatformException(error, For security reasons, WebView is not allowed in privileged processes, null)
#0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:564:7)
#1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:302:33)
#2 FlutterWebviewPlugin.launch (package:flutter_webview_plugin/src/base.dart:137:20)
#3 _WebviewScaffoldState.build (package:flutter_webview_plugin/src/webview_scaffold.dart:71:24)
#4 StatefulElement.build (package:flutter/src/widgets/framework.dart:3825:27)
#5 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3736:15)
#6 Element.rebuild (package:flutter/src/widgets/framework.dart:3559:5)
#7 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3716:5)
#8 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3864:11)
#9 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3711:5)
#10 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2956:14)
#11 Element.updateChild (package:flutter/src/widgets/framework.dart:2759:12)
#12 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3747:16)
#13 Element.rebuild (package:flutter/src/widgets/framework.dart:3559:5)
#14 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3716:5)
#15 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3864:11)
#16 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3711:5)
#17 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2956:14)
#18 Element.updateChild (package:flutter/src/widgets/framework.dart:2759:12)
#19 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4876:14)
#20 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2956:14)
#21 Element.updateChild (package:flutter/src/widgets/framework.dart:2759:12)
#22 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3747:16)
#23 Element.rebuild (package:flutter/src/widgets/framework.dart:3559:5)
#24 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3716:5)
#25 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3711:5)
#26 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2956:14)
#27 Element.updateChild (package:flutter/src/widgets/framework.dart:2759:12)
#28 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4876:14)
#29 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2956:14)
#30 Element.updateChild (package:flutter/src/widgets/framework.dart:2759:12)
#31 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4876:14)
#32 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2956:14)
#33 Element.updateChild (package:flutter/src/widgets/framework.dart:2759:12)
#34 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4876:14)
#35 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2956:14)
#36 Element.updateChild (package:flutter/src/widgets/framework.dart:2759:12)
#37 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4876:14)
#38 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2956:14)
#39 Element.updateChild (package:flutter/src/widgets/framework.dart:2759:12)
#40 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3747:16)
#41 Element.rebuild (package:flutter/src/widgets/framework.dart:3559:5)
#42 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3716:5)
#43 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3864:11)
#44 ComponentEle
The text was updated successfully, but these errors were encountered: