Replies: 1 comment
-
Found my problem: I've somehow ended up removing the <script src="cordova.js"></script> from my index.html. After adding it back, it started working. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to add the cordova-plugin-webview-proxy into my app, but for some reasons, the javascript part of the plugin is not imported into my app, on android.
The plugin branch I'm trying to install is available here:
https://github.com/GEDYSIntraWare/cordova-plugin-webview-proxy/tree/android
I'm adding it into my project like this:
cordova plugin add https://github.com/GEDYSIntraWare/cordova-plugin-webview-proxy/tree/android
Then building by cordova app with:
cordova build
In the resulting android app, in Android Studio, I can see the plugin files
Also the cordova_plugins.js is defining it:
I can build and deploy the app from the Android Studio without any errors, but when the app starts, it will hang at the place where the plugin is supposed to be called, as the window.WebviewProxy property is not available:
it fails at this line:
return window.WebviewProxy.convertProxyUrl(url.replace('./', BASE_URL));
This error was observed looking at chrome://inspect/#devices
Also, if I inspect the sources tab in the browser, I don't see any cordova .js files in there.
Any idea what is wrong?
The android app WebviewProxy.js in the android app looks like this:
Beta Was this translation helpful? Give feedback.
All reactions