Hi Junwei,

 

Thanks for your response but unfortunately it didn’t work. I just did what
you comment in the file placed at %Workspace%
plugins\cordova-plugin-crosswalk-webview\platforms\android\src\org\crosswalk
\engine

 

Any idea?

 

thanks

 

 

From: Fu, Junwei [mailto:[email protected]] 
Sent: Monday, November 9, 2015 2:18 AM
To: Daní Pinart <[email protected]>;
[email protected]
Subject: RE: [Crosswalk-help] Avoiding built-in login screen

 

You can try to ignore it in the XWalkCordovaResourceClient.java

   @Override

    public void onReceivedLoadError(XWalkView view, int errorCode, String
description,

           String failingUrl) {

        LOG.d(TAG, "CordovaWebViewClient.onReceivedError: Error code=%s
Description=%s URL=%s", errorCode, description, failingUrl);

 

        If (errorCode != ERROR_AUTHENTICATION) {

                 parentEngine.client.onReceivedError(errorCode, description,
failingUrl);

         }

}

 

Thanks,

Junwei.

From: Crosswalk-help
[mailto:[email protected]] On Behalf Of
Daní Pinart
Sent: Friday, November 06, 2015 3:45 PM
To: [email protected]
<mailto:[email protected]> 
Subject: [Crosswalk-help] Avoiding built-in login screen

 

Hi I’m using Crosswalk-Webview in an android phonegap project. The app has a
login screen that appears each time a 401 response is received from the
server. Since I added thre crosswalk-webview plugin a “built-in” login form
dialog pops up when receiving a 401 response. How can I configure webview in
order to do not handle 401 responses?

 

Thanks

_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to