简体   繁体   中英

WebView fails to login when app is first launched

Whenever I try to login to a select website when I FIRST launch my app, the login fails and the WebView just goes to about:blank, but if I refresh and try to login again (and any subsequent time) it works without flaw. Does anyone know why this could be happening? I'm just opening the page in a WebView object, should act like a normal browser. If I login with the default browser or Dolphin browser it works fine.

I'm thinking it could have something to do with the website itself, when you login it opens a new window, which I am capturing with my WebView object (and it works on subsequent logins) to just open the new window within the current WebView (I don't need, or want to bother with tabs) using shouldOverrideUrlLoading.

I'm just at a loss why it only fails on the first attempt.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM