Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

msj_api_access doesn't support XWalkCordovaView ? #187

Closed
mattwoberts opened this issue Nov 26, 2015 · 3 comments
Closed

msj_api_access doesn't support XWalkCordovaView ? #187

mattwoberts opened this issue Nov 26, 2015 · 3 comments

Comments

@mattwoberts
Copy link

Just trying out the new bits to inject scripts and use cordova APIs, and I get this error:

11-26 11:20:07.463  13468-13468/net.azurewebsites.mytestE/AndroidRuntime﹕ FATAL EXCEPTION: main
    Process: net.azurewebsites.test, PID: 13468
    java.lang.ClassCastException: org.crosswalk.engine.XWalkCordovaView cannot be cast to org.apache.cordova.engine.SystemWebView
            at com.manifoldjs.hostedwebapp.HostedWebApp$7$1.run(HostedWebApp.java:543)
            at android.os.Handler.handleCallback(Handler.java:739)
            at android.os.Handler.dispatchMessage(Handler.java:95)
            at android.os.Looper.loop(Looper.java:135)
            at android.app.ActivityThread.main(ActivityThread.java:5272)
            at java.lang.reflect.Method.invoke(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:372)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:909)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704)

Does this mean the new script injection bits aren't going to support XWalkCordovaView, or is this a WIP?

Thanks

@ghost
Copy link

ghost commented Nov 26, 2015

Thanks for reporting this is, should be fixed now. You can try the fix by installing the plugin again from v0.2.0 branch (need to uninstall if already installed):

cordova plugin add https://github.com/manifoldjs/ManifoldCordova.git#v0.2.0

@mattwoberts
Copy link
Author

Hi - Can't pull the latest version - if I cordova plugin remove cordova-plugin-hostedwebapp and then re-add as you suggest, I am still getting the older code (with the cast to a SystemWebView ....

@f2bo
Copy link
Contributor

f2bo commented Nov 27, 2015

Hi Matt,

Sorry about that. I'm not exactly sure why this happened. In any case, the latest code is already live, so you should be able to add the plugin directly from npm.

cordova plugin remove cordova-plugin-hostedwebapp
cordova plugin add cordova-plugin-hostedwebapp

@ghost ghost locked as resolved and limited conversation to collaborators Feb 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants