I am currently working on a web portal that needs to be run on Android Webview as part of its own application. This entire portal is heavily based on AJAX. Therefore, whenever a form is submitted, it runs asynchronously. Depending on the answer, I need to present a window with the message “Success” or “Error”. I am doing this with jQuery at the moment. The problem is that Android Webview will not redraw, and therefore the message box will not be visible. Which helps, you need to click anywhere on the screen. It seems to make it repaint. No, what do I need to do:
1) Changing the DOM in a different way, so Android Webview handles it correctly.
OR
2) Force repainting by triggering some (pseudo) events or using dirty hacking :)
Has anyone ever experienced this problem? Any tips are greatly appreciated.
source
share