fluttercommunity / flutter_webview_plugin

Community WebView Plugin - Allows Flutter to communicate with a native WebView.
https://pub.dev/packages/flutter_webview_plugin
Other
1.48k stars 929 forks source link

onUrlChanged listener is not working in android 9 realme 2 device. #577

Open dhanrajvermaRepo opened 4 years ago

dhanrajvermaRepo commented 4 years ago

I used web view for twitter/linkedIn authentication. I have to perform certain task on an specific url. onUrlChanged listener is working fine on android below 9 with latest chromium webview (77.0.3865.116) but on 9 (realme 2 and realME 2 pro) with latest chromium webView it is not working properly. When I downgrade chome to 72.0.3626.121 it again working fine on 9. what is the problem? please help me out as soon as possible.

output when android version is 9 an chrome webView is 72.0.3626.121 (working fine)

I/flutter (26629): social authorization url={,"app_authentication_url":"https://api.twitter.com/oauth/authenticate/?oauth_token="} I/WebViewFactory(26629): Loading com.android.chrome version 72.0.3626.121 (code 362612152) I/m.root.amploye(26629): The ClassLoaderContext is a special shared library. I/cr_LibraryLoader(26629): Time to load native libraries: 6 ms (timestamps 391-397) I/cr_WVCFactoryProvider(26629): WebView package downgraded from 386511637 to 362612152; deleting contents of /data/user/0/com.root.amployee/app_webview D/Intent (26629): disableDeathOnFileUriExposure com.android.chrome I/chromium(26629): [INFO:library_loader_hooks.cc(42)] Chromium logging enabled: level = 0, default verbosity = 0 I/cr_LibraryLoader(26629): Expected native library version number "72.0.3626.121", actual native library version number "72.0.3626.121" W/cr_ChildProcLH(26629): Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true D/Intent (26629): disableDeathOnFileUriExposure com.android.chrome D/Intent (26629): disableDeathOnFileUriExposure com.android.chrome I/cr_BrowserStartup(26629): Initializing chromium process, singleProcess=false E/chromium(26629): [ERROR:simple_version_upgrade.cc(177)] Version 9 is from the future. E/chromium(26629): [ERROR:simple_backend_impl.cc(728)] Simple Cache Backend: wrong file structure on disk: 5 path: /data/user/0/com.root.amployee/cache/org.chromium.android_webview/Code Cache/js W/m.root.amploye(26629): constructJavaHashMap: start W/m.root.amploye(26629): constructJavaHashMap: end W/m.root.amploye(26629): sendCommonDcs: start W/m.root.amploye(26629): sendCommonDcs: end W/m.root.amploye(26629): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->(Landroid/content/Context;I)V (light greylist, reflection) W/m.root.amploye(26629): constructJavaHashMap: start W/m.root.amploye(26629): constructJavaHashMap: end W/m.root.amploye(26629): sendCommonDcs: start W/m.root.amploye(26629): sendCommonDcs: end W/m.root.amploye(26629): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->logEvent(Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;)V (light greylist, reflection) W/m.root.amploye(26629): constructJavaHashMap: start W/m.root.amploye(26629): constructJavaHashMap: end W/m.root.amploye(26629): sendCommonDcs: start W/m.root.amploye(26629): sendCommonDcs: end W/m.root.amploye(26629): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionStarted(I)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection) W/m.root.amploye(26629): constructJavaHashMap: start W/m.root.amploye(26629): constructJavaHashMap: end W/m.root.amploye(26629): sendCommonDcs: start W/m.root.amploye(26629): sendCommonDcs: end W/m.root.amploye(26629): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(II)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection) W/m.root.amploye(26629): constructJavaHashMap: start W/m.root.amploye(26629): constructJavaHashMap: end W/m.root.amploye(26629): sendCommonDcs: start W/m.root.amploye(26629): sendCommonDcs: end W/m.root.amploye(26629): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection) W/m.root.amploye(26629): constructJavaHashMap: start W/m.root.amploye(26629): constructJavaHashMap: end W/m.root.amploye(26629): sendCommonDcs: start W/m.root.amploye(26629): sendCommonDcs: end W/m.root.amploye(26629): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection) W/m.root.amploye(26629): constructJavaHashMap: start W/m.root.amploye(26629): constructJavaHashMap: end W/m.root.amploye(26629): sendCommonDcs: start W/m.root.amploye(26629): sendCommonDcs: end W/m.root.amploye(26629): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(III)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection) W/m.root.amploye(26629): constructJavaHashMap: start W/m.root.amploye(26629): constructJavaHashMap: end W/m.root.amploye(26629): sendCommonDcs: start W/m.root.amploye(26629): sendCommonDcs: end W/m.root.amploye(26629): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection) E/chromium(26629): [ERROR:simple_version_upgrade.cc(177)] Version 9 is from the future. E/chromium(26629): [ERROR:simple_backend_impl.cc(728)] Simple Cache Backend: wrong file structure on disk: 5 path: /data/user/0/com.root.amployee/cache/org.chromium.android_webview W/cr_media(26629): Requires BLUETOOTH permission I/Choreographer(26629): Skipped 5 frames! The application may be doing too much work on its main thread. E/Parcel (26629): Reading a NULL string not supported here. E/Parcel (26629): Reading a NULL string not supported here. D/Intent (26629): disableDeathOnFileUriExposure com.android.chrome E/Parcel (26629): Reading a NULL string not supported here. W/AudioCapabilities(26629): Unsupported mime audio/ffmpeg W/VideoCapabilities(26629): Unsupported mime video/ffmpeg W/VideoCapabilities(26629): Unrecognized profile 4 for video/hevc W/VideoCapabilities(26629): Unrecognized profile/level 0/3 for video/mpeg2 W/VideoCapabilities(26629): Unrecognized profile/level 0/3 for video/mpeg2 I/VideoCapabilities(26629): Unsupported profile 4 for video/mp4v-es W/Utils (26629): could not parse long range '175-174' I/chromium(26629): [INFO:CONSOLE(7)] "Error parsing a meta element's content: ';' is not a valid key-value pair separator. Please use ',' instead.", source: https://api.twitter.com/oauth/authenticate/?oauth_token=tv5epwAAAAAA6z-_AAABbd348kM (7) I/chromium(26629): [INFO:CONSOLE(3)] "Refused to apply inline style because it violates the following Content Security Policy directive: "style-src https://abs.twimg.com https://abs-0.twimg.com". Either the 'unsafe-inline' keyword, a hash ('sha256-0EZqoz+oBhx7gF4nvY2bSqoGyy4zLjNF+SDQXGp/ZrY='), or a nonce ('nonce-...') is required to enable inline execution. I/chromium(26629): ", source: https://twitter.com/i/js_inst?c_name=ui_metrics (3) I/chatty (26629): uid=10218(com.root.amployee) identical 1 line I/chromium(26629): [INFO:CONSOLE(3)] "Refused to apply inline style because it violates the following Content Security Policy directive: "style-src https://abs.twimg.com https://abs-0.twimg.com". Either the 'unsafe-inline' keyword, a hash ('sha256-0EZqoz+oBhx7gF4nvY2bSqoGyy4zLjNF+SDQXGp/ZrY='), or a nonce ('nonce-...') is required to enable inline execution. I/chromium(26629): ", source: https://twitter.com/i/js_inst?c_name=ui_metrics (3) I/flutter (26629): link loaded in webViewhttps://api.twitter.com/oauth/authenticate/?oauth_token=tv5epwAAAAAA6z-_AAABbd348kM I/chromium(26629): [INFO:CONSOLE(3)] "Refused to apply inline style because it violates the following Content Security Policy directive: "style-src https://abs.twimg.com https://abs-0.twimg.com". Either the 'unsafe-inline' keyword, a hash ('sha256-0EZqoz+oBhx7gF4nvY2bSqoGyy4zLjNF+SDQXGp/ZrY='), or a nonce ('nonce-...') is required to enable inline execution. I/chromium(26629): ", source: https://twitter.com/i/js_inst?c_name=ui_metrics (3) I/chromium(26629): [INFO:CONSOLE(3)] "Refused to apply inline style because it violates the following Content Security Policy directive: "style-src https://abs.twimg.com https://abs-0.twimg.com". Either the 'unsafe-inline' keyword, a hash ('sha256-0EZqoz+oBhx7gF4nvY2bSqoGyy4zLjNF+SDQXGp/ZrY='), or a nonce ('nonce-...') is required to enable inline execution. I/chromium(26629): ", source: https://twitter.com/i/js_inst?c_name=ui_metrics (3) I/chromium(26629): [INFO:CONSOLE(0)] "Refused to load the image 'https://api.twitter.com/favicon.ico' because it violates the following Content Security Policy directive: "img-src https://abs.twimg.com https://*.twimg.com https://pbs.twimg.com data:". I/chromium(26629): ", source: https://api.twitter.com/oauth/authenticate/?oauth_token=tv5epwAAAAAA6z-_AAABbd348kM (0) I/Choreographer(26629): Skipped 11 frames! The application may be doing too much work on its main thread. W/cr_AwAutofillManager(26629): WebView autofill is disabled because WebView isn't created with activity context. I/Choreographer(26629): Skipped 1 frames! The application may be doing too much work on its main thread. I/Choreographer(26629): Skipped 1 frames! The application may be doing too much work on its main thread. W/cr_AwAutofillManager(26629): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(26629): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(26629): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(26629): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(26629): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(26629): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(26629): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(26629): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(26629): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(26629): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(26629): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(26629): WebView autofill is disabled because WebView isn't created with activity context. W/crAwAutofillManager(26629): WebView autofill is disabled because WebView isn't created with activity context. I/Choreographer(26629): Skipped 5 frames! The application may be doing too much work on its main thread. I/Choreographer(26629): Skipped 1 frames! The application may be doing too much work on its main thread. I/chromium(26629): [INFO:CONSOLE(8)] "Error parsing a meta element's content: ';' is not a valid key-value pair separator. Please use ',' instead.", source: https://api.twitter.com/oauth/authenticate (8) I/flutter (26629): link loaded in webViewhttps://api.twitter.com/oauth/authenticate I/chromium(26629): [INFO:CONSOLE(0)] "Refused to load the image 'https://api.twitter.com/favicon.ico' because it violates the following Content Security Policy directive: "img-src https://abs.twimg.com https://*.twimg.com https://pbs.twimg.com data:". I/chromium(26629): ", source: https://api.twitter.com/oauth/authenticate (0) I/Choreographer(26629): Skipped 1 frames! The application may be doing too much work on its main thread. I/chromium(26629): [INFO:CONSOLE(1)] " I/chromium(26629): It looks like you're using the development build of the Firebase JS SDK. I/chromium(26629): When deploying Firebase apps to production, it is advisable to only import I/chromium(26629): the individual SDK components you intend to use. I/chromium(26629): I/chromium(26629): For the module builds, these are available in the following manner I/chromium(26629): (replace with the name of a component - i.e. auth, database, etc): I/chromium(26629): I/chromium(26629): CommonJS Modules: I/chromium(26629): const firebase = require('firebase/app'); I/chromium(26629): require('firebase/'); I/chromium(26629): I/chromium(26629): ES Modules: I/chromium(26629): import firebase from 'firebase/app'; I/chromium(26629): import 'firebase/'; I/chromium(26629): I/chromium(26629): Typescript: I/chromium(26629): import * as firebase from 'firebase/app'; I/chromium(26629): import 'firebase/'; I/chromium(26629): ", source: https://amployee-stage.theclientdemos.com/vendor.dc0207a7ee7a0d857642.bundle.js (1) I/flutter (26629): link loaded in webView https://amployee-stage.theclientdemos.com/home/socialIntregation?oauth_token=zcxzcxA6z-_AAABbd348kM&oauth_verifier=MCSGNgSDMFG3GGKhzzdzdGxTfAJeJQ_ I/flutter (26629): link loaded in webViewhttps://amployee-stage.theclientdemos.com/ I/flutter (26629): onSocialUserAccessTokenSuccess I/flutter (26629): https://amployee-stageback.theclientdemos.com/posts/sharePostView/ I/flutter (26629): {"Response":"Post has been successfully shared on Twitter"}

output when android version is 9 an chrome webView is 77.0.3865.116 (issue occurs in this case)

I/WebViewFactory(21974): Loading com.android.chrome version 77.0.3865.116 (code 386511637) I/cr_LibraryLoader(21974): Time to load native libraries: 6 ms (timestamps 6242-6248) D/Intent (21974): disableDeathOnFileUriExposure com.android.chrome I/chromium(21974): [INFO:library_loader_hooks.cc(51)] Chromium logging enabled: level = 0, default verbosity = 0 I/cr_LibraryLoader(21974): Expected native library version number "77.0.3865.116", actual native library version number "77.0.3865.116" W/cr_ChildProcLH(21974): Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true W/m.root.amploye(21974): constructJavaHashMap: start W/m.root.amploye(21974): constructJavaHashMap: end W/m.root.amploye(21974): sendCommonDcs: start W/m.root.amploye(21974): sendCommonDcs: end W/m.root.amploye(21974): Accessing hidden method Landroid/content/Context;->bindServiceAsUser(Landroid/content/Intent;Landroid/content/ServiceConnection;ILandroid/os/Handler;Landroid/os/UserHandle;)Z (light greylist, reflection) I/cr_BrowserStartup(21974): Initializing chromium process, singleProcess=false D/Intent (21974): disableDeathOnFileUriExposure com.android.chrome D/Intent (21974): disableDeathOnFileUriExposure com.android.chrome E/chromium(21974): [ERROR:filesystem_posix.cc(89)] stat /data/user/0/com.root.amployee/cache/WebView/Crashpad: No such file or directory (2) E/chromium(21974): [ERROR:filesystem_posix.cc(62)] mkdir /data/user/0/com.root.amployee/cache/WebView/Crashpad: No such file or directory (2) W/chromium(21974): [WARNING:dns_config_service_posix.cc(339)] Failed to read DnsConfig. W/m.root.amploye(21974): constructJavaHashMap: start W/m.root.amploye(21974): constructJavaHashMap: end W/m.root.amploye(21974): sendCommonDcs: start W/m.root.amploye(21974): sendCommonDcs: end W/m.root.amploye(21974): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->(Landroid/content/Context;I)V (light greylist, reflection) W/m.root.amploye(21974): constructJavaHashMap: start W/m.root.amploye(21974): constructJavaHashMap: end W/m.root.amploye(21974): sendCommonDcs: start W/m.root.amploye(21974): sendCommonDcs: end W/m.root.amploye(21974): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->logEvent(Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;)V (light greylist, reflection) W/m.root.amploye(21974): constructJavaHashMap: start W/m.root.amploye(21974): constructJavaHashMap: end W/m.root.amploye(21974): sendCommonDcs: start W/m.root.amploye(21974): sendCommonDcs: end W/m.root.amploye(21974): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionStarted(I)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection) W/m.root.amploye(21974): constructJavaHashMap: start W/m.root.amploye(21974): constructJavaHashMap: end W/m.root.amploye(21974): sendCommonDcs: start W/m.root.amploye(21974): sendCommonDcs: end W/m.root.amploye(21974): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(II)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection) W/m.root.amploye(21974): constructJavaHashMap: start W/m.root.amploye(21974): constructJavaHashMap: end W/m.root.amploye(21974): sendCommonDcs: start W/m.root.amploye(21974): sendCommonDcs: end W/m.root.amploye(21974): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection) W/m.root.amploye(21974): constructJavaHashMap: start W/m.root.amploye(21974): constructJavaHashMap: end W/m.root.amploye(21974): sendCommonDcs: start W/m.root.amploye(21974): sendCommonDcs: end W/m.root.amploye(21974): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection) W/m.root.amploye(21974): constructJavaHashMap: start W/m.root.amploye(21974): constructJavaHashMap: end W/m.root.amploye(21974): sendCommonDcs: start W/m.root.amploye(21974): sendCommonDcs: end W/m.root.amploye(21974): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(III)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection) W/m.root.amploye(21974): constructJavaHashMap: start W/m.root.amploye(21974): constructJavaHashMap: end W/m.root.amploye(21974): sendCommonDcs: start W/m.root.amploye(21974): sendCommonDcs: end W/m.root.amploye(21974): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection) W/cr_media(21974): Requires BLUETOOTH permission D/Intent (21974): disableDeathOnFileUriExposure com.android.chrome I/Choreographer(21974): Skipped 7 frames! The application may be doing too much work on its main thread. E/Parcel (21974): Reading a NULL string not supported here. E/Parcel (21974): Reading a NULL string not supported here. W/AudioCapabilities(21974): Unsupported mime audio/ffmpeg E/Parcel (21974): Reading a NULL string not supported here. W/VideoCapabilities(21974): Unsupported mime video/ffmpeg W/VideoCapabilities(21974): Unrecognized profile 4 for video/hevc W/VideoCapabilities(21974): Unrecognized profile/level 0/3 for video/mpeg2 W/VideoCapabilities(21974): Unrecognized profile/level 0/3 for video/mpeg2 I/VideoCapabilities(21974): Unsupported profile 4 for video/mp4v-es W/Utils (21974): could not parse long range '175-174' I/chromium(21974): [INFO:CONSOLE(7)] "Error parsing a meta element's content: ';' is not a valid key-value pair separator. Please use ',' instead.", source: https://api.twitter.com/oauth/authenticate/?oauth_token=vB0sjQAAAAAA6z-_AAABbd3rmLM (7) I/chromium(21974): [INFO:CONSOLE(3)] "Refused to apply inline style because it violates the following Content Security Policy directive: "style-src https://abs.twimg.com https://abs-0.twimg.com". Either the 'unsafe-inline' keyword, a hash ('sha256-0EZqoz+oBhx7gF4nvY2bSqoGyy4zLjNF+SDQXGp/ZrY='), or a nonce ('nonce-...') is required to enable inline execution. I/chromium(21974): ", source: https://twitter.com/i/js_inst?c_name=ui_metrics (3) I/chromium(21974): [INFO:CONSOLE(3)] "Refused to apply inline style because it violates the following Content Security Policy directive: "style-src https://abs.twimg.com https://abs-0.twimg.com". Either the 'unsafe-inline' keyword, a hash ('sha256-0EZqoz+oBhx7gF4nvY2bSqoGyy4zLjNF+SDQXGp/ZrY='), or a nonce ('nonce-...') is required to enable inline execution. I/chromium(21974): ", source: https://twitter.com/i/js_inst?c_name=ui_metrics (3) I/flutter (21974): link loaded in webView _https://api.twitter.com/oauth/authenticate/?oauth_token=vB0sjQAAAAAA6z-_AAABbd3rmLM_ I/chromium(21974): [INFO:CONSOLE(3)] "Refused to apply inline style because it violates the following Content Security Policy directive: "style-src https://abs.twimg.com https://abs-0.twimg.com". Either the 'unsafe-inline' keyword, a hash ('sha256-0EZqoz+oBhx7gF4nvY2bSqoGyy4zLjNF+SDQXGp/ZrY='), or a nonce ('nonce-...') is required to enable inline execution. I/chromium(21974): ", source: https://twitter.com/i/js_inst?c_name=ui_metrics (3) I/chromium(21974): [INFO:CONSOLE(0)] "Refused to load the image 'https://api.twitter.com/favicon.ico' because it violates the following Content Security Policy directive: "img-src https://abs.twimg.com https://*.twimg.com https://pbs.twimg.com data:". I/chromium(21974): ", source: https://api.twitter.com/oauth/authenticate/?oauth_token=vB0sjQAAAAAA6z-_AAABbd3rmLM (0) I/Choreographer(21974): Skipped 3 frames! The application may be doing too much work on its main thread. I/Choreographer(21974): Skipped 1 frames! The application may be doing too much work on its main thread. W/cr_AwAutofillManager(21974): WebView autofill is disabled because WebView isn't created with activity context. I/Choreographer(21974): Skipped 2 frames! The application may be doing too much work on its main thread. W/cr_AwAutofillManager(21974): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(21974): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(21974): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(21974): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(21974): WebView autofill is disabled because WebView isn't created with activity context. I/Choreographer(21974): Skipped 2 frames! The application may be doing too much work on its main thread. W/cr_AwAutofillManager(21974): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(21974): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(21974): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(21974): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(21974): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(21974): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(21974): WebView autofill is disabled because WebView isn't created with activity context. W/cr_AwAutofillManager(21974): WebView autofill is disabled because WebView isn't created with activity context. I/Choreographer(21974): Skipped 1 frames! The application may be doing too much work on its main thread. I/Choreographer(21974): Skipped 1 frames! The application may be doing too much work on its main thread. I/chromium(21974): [INFO:CONSOLE(8)] "Error parsing a meta element's content: ';' is not a valid key-value pair separator. Please use ',' instead.", source: https://api.twitter.com/oauth/authenticate (8) I/flutter (21974): link loaded in webViewhttps://api.twitter.com/oauth/authenticate I/chromium(21974): [INFO:CONSOLE(0)] "Refused to load the image 'https://api.twitter.com/favicon.ico' because it violates the following Content Security Policy directive: "img-src https://abs.twimg.com https://*.twimg.com https://pbs.twimg.com data:". I/chromium(21974): ", source: https://api.twitter.com/oauth/authenticate (0) I/chromium(21974): [INFO:CONSOLE(1)] " I/chromium(21974): It looks like you're using the development build of the Firebase JS SDK. I/chromium(21974): When deploying Firebase apps to production, it is advisable to only import I/chromium(21974): the individual SDK components you intend to use. I/chromium(21974): I/chromium(21974): For the module builds, these are available in the following manner I/chromium(21974): (replace with the name of a component - i.e. auth, database, etc): I/chromium(21974): I/chromium(21974): CommonJS Modules: I/chromium(21974): const firebase = require('firebase/app'); I/chromium(21974): require('firebase/'); I/chromium(21974): I/chromium(21974): ES Modules: I/chromium(21974): import firebase from 'firebase/app'; I/chromium(21974): import 'firebase/'; I/chromium(21974): I/chromium(21974): Typescript: I/chromium(21974): import * as firebase from 'firebase/app'; I/chromium(21974): import 'firebase/'; I/chromium(21974): ", source: https://amployee-stage.theclientdemos.com/vendor.dc0207a7ee7a0d857642.bundle.js (1) I/flutter (21974): link loaded in webViewhttps://amployee-stage.theclientdemos.com/ I/flutter (21974): link loaded in webViewhttps://amployee-stage.theclientdemos.com/

compare bold and italic link this should be same in both cases

masewo commented 4 years ago

Same problem over here on Android 10 emulator. onStateChanged does not work, too. For me it was the problem that I extended FlutterApplication and the plugin does not handle this case: https://github.com/fluttercommunity/flutter_webview_plugin/pull/578