We built a hybrid application using android webview and I use my phone (LG Nexus 4) to test it. The android application used to show JavaScript alerts from the website properly earlier but lately it has stopped showing the same.
It is throwing the following error whenever an alert is to be thrown from the application and nothing is shown.
Cannot create a dialog, the WebView context is not an Activity
I am suspecting that this behaviour has started after google has recently updated the WebView component. I am right now running on Android 5.0.1 and webview version is 40 (1832189-arm)
I will try rolling back the updates and check but I can't ask all the users to do it. Are there any other issues reported similar to this? Is there a solution?
Update I have uninstalled the updates to the WebView component and checked. Alerts are being shown fine. If this is an issue, where can I report it?