Coder Social home page Coder Social logo

Comments (9)

brodybits avatar brodybits commented on May 27, 2024 1

[...] 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.

janpio avatar janpio commented on May 27, 2024

I updated My Android App to latest version [email protected]

This is not the latest version. 7.1.1 is.

from cordova-android.

sandeep2244 avatar sandeep2244 commented on May 27, 2024

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.

brodybits avatar brodybits commented on May 27, 2024

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.

sandeep2244 avatar sandeep2244 commented on May 27, 2024

@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.

janpio avatar janpio commented on May 27, 2024

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.

jcesarmobile avatar jcesarmobile commented on May 27, 2024

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.

brodybits avatar brodybits commented on May 27, 2024

Closing this as there is a cordova-docs issue already linked.

apache/cordova-docs#884

from cordova-android.

martinhorvath avatar martinhorvath commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.