pliniofm commented on issue #1472: URL: https://github.com/apache/cordova-android/issues/1472#issuecomment-1207489368
For each initialized plugin, I log a message for success and for fail. I am sure I am logging some messages. I guess I've found the problem. According to Android documentation (link below), it needed to be implemented "onConsoleMessage" on a WebChromeClient. https://developer.android.com/guide/webapps/debugging#WebView I included manually this method locally in my environment, and it worked fine. ``` > adb logcat -v threadtime chromium:D SystemWebViewClient:D SystemWebChromeClient:D *:S --------- beginning of crash --------- beginning of system --------- beginning of main 08-07 17:57:36.469 26669 26669 D SystemWebChromeClient: https://localhost/js/labels.js: Line 321 : Language (window.localStorage.lang): pt 08-07 17:57:37.054 26669 26669 D SystemWebChromeClient: https://localhost/js/index.js: Line 16 : Event [onload page] 08-07 17:57:37.054 26669 26669 D SystemWebChromeClient: https://localhost/js/notification.js: Line 18 : [notification.local] NOT FOUND 08-07 17:57:37.055 26669 26669 D SystemWebChromeClient: https://localhost/js/stats.js: Line 20 : firebase initCrashlytics: not found 08-07 17:57:37.055 26669 26669 D SystemWebChromeClient: https://localhost/js/stats.js: Line 33 : firebase initAnalytics: not found 08-07 17:57:37.055 26669 26669 D SystemWebChromeClient: https://localhost/js/stats.js: Line 46 : firebase initPerformance: not found 08-07 17:57:37.056 26669 26669 D SystemWebChromeClient: https://localhost/js/utils.js: Line 43 : [Insomnia] keepAwake call... 08-07 17:57:37.059 26669 26669 D SystemWebChromeClient: https://localhost/js/stats.js: Line 215 : Device info: 10.1.2 . . . ``` But it was removed from Cordova in his commit below. https://github.com/apache/cordova-android/commit/6d451bc6f9b5ec9f3c21ff5b6c2b221d9628256c Please, could you give me the context for this commit? I will try to fix my environment to work without this method. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
