iOS client: Window.location.origin is http://meteor.local


#1

I’m trying out building my app for the ios platform for the first time. One thing I am having trouble with is that after I build my ios app and run it on my ios device, the client shows that window.location.origin is set to http://meteor.local. I am building the app with this command:

meteor run ios-device --mobile-server http://gridmatch.meteor.com:80 

Is there a way to make sure that window.location.origin is equal to the mobile-server url on the ios client?


#2

Is it an option for you to use Meteor.absoluteUrl() instead?


#3

That was just what I needed. And I learn something new everyday. Thanks @sashko