I have been investigating this for hours without success:
My app is deployed on Heroku and works well in browsers.
Then I run it on iOS with:
meteor run ios-device --mobile-server https://<url>
It load and after a few seconds, HCP refreshes the pages and the app loses the connection with the server and I’m now connected to a different host (local).
I have tried:
-setting environement variables on the server (ROOT_URL, DDP_DEFAULT_CONNECTION_URL, MOBILE_DDP_URL)
-removing/adding ios platform
-deleting build folders before building
He says he set it on the server. He also needs to set it where he runs meteor run from. From what I understood of his message, his server is on heroku, but he must be running the ios-device for testing locally.
I’m not sure - I’ve not seen this before - I follow a pretty similar workflow when we want to test our production or staging apps with debugging enabled and it works fine - that being said, your hot code push will only update when you deploy to your remote server - not each time you make a change locally.
Yes I meant HCP does not work when I deploy a change on the server.
The app is downloading the new bundle but says it has not ROOT URL.
So I probably need to declare it better on the website but I have already done it, so I don’t know what to do more?