-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Change from CordovaWebView to SystemWebView in latest Cordova not working #494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is not the latest version. 7.1.1 is. |
Its ok , ?? |
This looks like a departure from the instructions in https://cordova.apache.org/docs/en/latest/guide/platforms/android/webview.html, which would not be supported. If you need support we do need you to upgrade to the latest version of Cordova Android, which is now 7.1.1. Here is the command to upgrade to the latest version of Cordova Android:
In case the instructions in https://cordova.apache.org/docs/en/latest/guide/platforms/android/webview.html do not work for you please post a minimal, complete demo project. |
@brodybits @janpio Because of CordovaWebView is now Interface not a Class, we cant use it so,
Now changing to SystemWebView Class I replaced it with
Now Problem is ,
And I override setWebChromeClient() in my main class(WebCall.java) which i defined above in my question And I got Error Regarding Class Cast Exception In Previous Version They using CordovaWebView And I checked They Dont Cast It below is the function for previous version
So How to Solve it Thank You |
The webview documentation seems to be outdated in general. If you figure it out, please make sure to create a PR fixing the documentation to match the actual reality. Thank you! |
This is not a cordova-android issue, it's a cordova-docs issue. Closing this as there is a cordova-docs issue already linked. |
|
I had a hard time with the documentation and tried to reflect my findings in this update: apache/cordova-docs@6dc8836 Can somebody check if this is useful for others? |
My response is in apache/cordova-docs#884 (comment). In short a pull request would be really appreciated. I would prefer that we keep further discussion in apache/cordova-docs#884 instead of this closed issue. |
Now where i used CordovaWebView for for Webview in my app as follows
but it's not present in latest version of Cordova. So I changed to it by below lines
where i am using WebRtc for my App So I used following method of SystemWebView Class
Now i got runtime error in my Main java file regarding classCastException
How to solve This error ? Please any ones help will be grateful
Thank you
The text was updated successfully, but these errors were encountered: