Comments (9)
[...] tried to reflect my findings in this update: apache/cordova-docs@6dc8836
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.
from cordova-android.
I updated My Android App to latest version [email protected]
This is not the latest version. 7.1.1 is.
from cordova-android.
I updated My Android App to latest version [email protected]
This is not the latest version. 7.1.1 is.
Its ok ,
But how to solve above issue
??
from cordova-android.
but it's not present in latest version of Cordova. So I changed to it by below lines
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:
cordova platform add android@latest
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.
from cordova-android.
@brodybits @janpio
I updated to 7.1.1 And its not working
Because of CordovaWebView is now Interface not a Class, we cant use it so,
<org.apache.cordova.CordovaWebView
android:id="@+id/tutorialView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
Now changing to SystemWebView Class
I replaced it with
<org.apache.cordova.engine.SystemWebView
android:id="@+id/SystemWebView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
Now Problem is ,
there is function of SystemWebView.java (class)
setWebChromeClient()
public void setWebChromeClient(WebChromeClient client) {
chromeClient = (SystemWebChromeClient)client;
super.setWebChromeClient(client);
}
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
Which i defined in my question
In Previous Version They using CordovaWebView And I checked They Dont Cast It
below is the function for previous version
public void setWebChromeClient(CordovaChromeClient client) {
this.chromeClient = client;
super.setWebChromeClient(client);
}
So How to Solve it
Thank You
from cordova-android.
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!
from cordova-android.
This is not a cordova-android issue, it's a cordova-docs issue.
The embedded workflow has been broken/undocumented for a long time, you can take a look at this two PRs that tried to document it, but in the end were closed. They both helped me to embed the webview long time ago. Also check the comments.
apache/cordova-docs#498
apache/cordova-docs#544
Closing this as there is a cordova-docs issue already linked.
from cordova-android.
Closing this as there is a cordova-docs issue already linked.
from cordova-android.
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?
from cordova-android.
Related Issues (20)
- Missing privateHelpers.extractStringFromManifest method. HOT 1
- Android 14 support ? HOT 1
- Incoming Call FullScreen Intent On A Cordova Activity HOT 1
- `ErrorURL` preference is not working HOT 2
- cordova-android build tools not found issue HOT 1
- Will Cordova Android 13 support Kotlin 1.9.x ? HOT 2
- Failed to register a ServiceWorker with Cordova 10 HOT 6
- Target date for support to API34 HOT 2
- DevTools cannot display source map properly HOT 2
- cordova-android12.0.1 onRequestPermissionsResult never used HOT 1
- Cordova app on Android crashes after choosing file with native HTML file input, only on Android 13 HOT 3
- Update docs in regards to using adaptive icons with background colors HOT 3
- Splash screen icon not show at first launch HOT 1
- Execution failed for task ':app:mergeReleaseResources'. HOT 2
- Panoramic images HOT 1
- backgroundMode plugin quirks HOT 2
- Cordova undefined when AndroidInsecureFileModeEnabled set to false HOT 2
- Detected 'avdmanager' command but no 'tools\bin' directory found near. HOT 2
- Push Notifications on Android 13 and higher devices HOT 1
- Black or blank screen seen after keeping application idle and then open the application in cordova version >= 10. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-android.