You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2022/05/18 03:28:43 UTC

[GitHub] [cordova] vfa-tamhh commented on issue #331: java.io.FileNotFoundException: www/favicon.ico

vfa-tamhh commented on issue #331:
URL: https://github.com/apache/cordova/issues/331#issuecomment-1129528082

   @breautek 
   I found the solution to resolve this. At this: https://github.com/apache/cordova-android/blob/master/framework/src/org/apache/cordova/engine/SystemWebViewClient.java#L423
   Change as below:
   
   ```java
   @Override
       public WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest request) {
           if (request.getUrl().getPath().equals("/favicon.ico")) {
               return new WebResourceResponse("image/png", null, null);
           } else {
               return this.assetLoader.shouldInterceptRequest(request.getUrl());
           }
       }
   ```
   
   After that run the app. No error show in the Logcat.
   Please check this case. 
   Thank you.


-- 
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: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org