breautek edited a comment on issue #1142: URL: https://github.com/apache/cordova-android/issues/1142#issuecomment-743152935
> t would simply rule out using modern JavaScript in Cordova, creating a major compatibility hurdle. I agree, I was just simply stating that currently Cordova doesn't support JavaScript Modules. The last time this was brought to any level of discussion, potential solutions were kinda sparse. However today, the Android SDK may offer a solution. I'll explain... Schemes are implemented for android on the ionic webview, however a Google engineer have approached Ionic in this [thread](https://github.com/ionic-team/cordova-plugin-ionic-webview/issues/484) about potential problems and some flaws that makes schemes incredibly hard to maintain backwards compatibility and thus discouraged it's use. The same engineer suggested that using WebAssetLoader may be a sufficient alternative to avoid CORS issues on android, and some work is being done to get that implemented in this [PR](https://github.com/apache/cordova-android/pull/1137) -- perhaps that will also address this issue for Javascript Modules. You'll need to enable AndroidX in your project but maybe give it a try. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
