cordova-plugin-meteor-webapp icon indicating copy to clipboard operation
cordova-plugin-meteor-webapp copied to clipboard

Provide an API to change ROOT_URL

Open crapthings opened this issue 7 years ago • 3 comments

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.

image

could we Provide an api to let change root_url ?? something like this

WebAppLocalServer.replaceRootUrl('http://anotherapp.com')

@martijnwalraven

crapthings avatar Aug 16 '18 10:08 crapthings

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?

crapthings avatar Aug 16 '18 10:08 crapthings

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 avatar May 05 '20 23:05 delki8

@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.

KoenLav avatar May 06 '20 05:05 KoenLav