Sorry if this has been answered multiple times, but I did search and didn’t find an answer.
I ran the following command “ionic build browser --prod --release” to build the app, then uploaded it to a subdirectory. Everything else seems to work fine, but cordova is trying to get the config.xml from the root public directory instead of the subdirectory the app is uploaded to.
Sure, the url is https://qrsnack.com/storebr . It’s an Apha app. I’m just experimenting with actual deployment, and I’m not 100% sure cordova will be in the final version, but it still seems that loading the config.xml from the same directory the app is in should be automatic. If not, I might consider that a bug.
I assume it would work if I served the app from a subdomain, and had the app in the root of that subdomain, so I guess there are other options too.
I actually didn’t know that `cordova-browser’ loads the config.xml on runtime… so I am looking into that now. I can see the broken request you mentioned.
This might be a bug in cordova-browser!
This /config.xml should probably be a relative link or at least somehow handle the path of the app - but not just go to the root and then look for config.xml. This breaks - as you found out.
Ok. Please create an issue at issues.cordova.io and post the link to it here. It is important that this gets reported so it can be fixed (in a generalized way that works for all projects).
OH… FYI… it looks like every cordova plugin (or at least most) trys to load the config file. It just broke on the splashscreen because it was the first (and only) plugin called on page load. So, it would definitely be an issue for anyone trying to run a cordova app from a subdirectory.
Created the issue, but got the message “Issue created, but currently not visible”, and I didn’t copy the link fast enough. I just registered, so I imagine my post needs to be approved.