ionic-team / ionic-team/cordova-plugin-ionic-webview

Plugins won't load on iOS with ionic urls

Open
#685 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
493
Forks
410
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/ionic-team/cordova-plugin-ionic-webview/files/12522859/config.txt)
[plugins.txt](https://github.com/ionic-team/cordova-plugin-ionic-webview/files/12522860/plugins.txt)
[package.json](https://github.com/ionic-team/cordova-plugin-ionic-webview/files/12522862/package.txt)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.