Skip to content

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

Description

@blackmad

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions