cordova-plugin-meteor-webapp
cordova-plugin-meteor-webapp copied to clipboard
Provide an API to change ROOT_URL
there's a way that we can replace ROOT_URL by put a script on top of other js, but this doesn't change HCP url.

could we Provide an api to let change root_url ?? something like this
WebAppLocalServer.replaceRootUrl('http://anotherapp.com')
@martijnwalraven
if the index.html is read-only can we put a txt file that contain rooturl string and try to load it first if no found then load head next?
Hello @crapthings
Recently I came across what believe to be the same problem you got here with HCP, and I even open the #93 issue. At least for me, the problem was solved by using --mobile-server (more details at #93).
I know it's been a long time but would you be willing to test if that works for you too?
Since the issue is around for a while I'm also mentioning @martijnwalraven and @koenlav since they also seem interested and maybe could verify if this will work.
@delki8 thanks for checking in.
The issue here is not that the ROOT_URL from when the bundle is created is not respected (--mobile-server), but rather that updating the ROOT_URL after the user has installed the app (on the user device, not in development) doesn't make HCP look at the new ROOT_URL.