ionic-team / cordova-plugin-ionic-webview

Web View plugin for Cordova, specialized for Ionic apps.
Apache License 2.0
487 stars 395 forks source link

Plugins won't load on iOS with ionic urls #685

Open blackmad opened 1 year ago

blackmad commented 1 year ago

Hey all -

I'm trying to upgrade a year old cordova project I built and in the painful of version upgrades.

I was using cordova-plugin-ionic-webview (I don't remember why, I really wish I'd kept a devlog), but as I've been upgrading cordova and plugins, it seems to be breaking loading plugins on iOS, both in the simulator and on my device.

With cordova-plugin-ionic-webview, it tries to load plugins from urls that look like ionic://localhost/plugins/cordova-plugin-camera/www/CameraPopoverOptions.js and I get 500s

Screenshot 2023-09-05 at 11 48 19 AM

When I uninstall the plugin, they try to load from urls that look like file:///Users/blackmad/Librarv/Developer/CoreSimulator/Devices/4D7BF916-97B8-4BB8-8F90-764196F6A704/data/Containers/Bu ndle/Application/OEE526FB-3DA9-477E-87B6-A510F1D8BC53/Assemble2023.app/www/plugins/cordova-plugin-ns0m-file-transfer/ www/FileTransfer.is and those seem to work fine

Screenshot 2023-09-05 at 11 46 48 AM

Some of my cordova config files config.xml plugins.txt package.json

Does anyone know why this might be happening? I looked through the issues and couldn't find an obvious answer!