flutter_webview_plugin icon indicating copy to clipboard operation
flutter_webview_plugin copied to clipboard

Migrate to flutterEmbedding v2 with null safety

Open snoopdoggy322 opened this issue 3 years ago • 4 comments

snoopdoggy322 avatar Jan 11 '22 07:01 snoopdoggy322

i really dont know what is the cause

but upon using your github respositery

this error happens when app comes back from the background

W/FlutterJNI( 1369): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: flutter_webview_plugin. Response ID: 2
W/FlutterJNI( 1369): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: flutter_webview_plugin. Response ID: 3
W/FlutterJNI( 1369): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: flutter_webview_plugin. Response ID: 4
W/FlutterJNI( 1369): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: flutter_webview_plugin. Response ID: 5
W/FlutterJNI( 1369): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: flutter_webview_plugin. Response ID: 6
W/FlutterJNI( 1369): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: flutter_webview_plugin. Response ID: 7
W/FlutterJNI( 1369): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: flutter_webview_plugin. Response ID: 8
W/FlutterJNI( 1369): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: flutter_webview_plugin. Response ID: 9
W/FlutterJNI( 1369): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: flutter_webview_plugin. Response ID: 10
W/FlutterJNI( 1369): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: flutter_webview_plugin. Response ID: 11

i tried changing parts of the activity part with no results

@snoopdoggy322

abdelaziz-mahdy avatar Jan 12 '22 21:01 abdelaziz-mahdy

Hi. Can you make one bugfix please. In file lib/src/base.dart line 370 make navigationType nullable: final int? navigationType;

MarisB avatar Feb 14 '22 16:02 MarisB

You can use my repo - https://github.com/fluttercommunity/flutter_webview_plugin/issues/940#issuecomment-1186431094

Bhagat8533 avatar Jul 17 '22 07:07 Bhagat8533