Meteor not rendering when src is a url/ip when building to an apk

I have been trying to figure out why Meteor isn’t rendering an image. I have tried multiple different versions of Meteor 1.3, 1.3.2.4, 1.3.5.1 and 1.4.2.3. I cannot get it to render and it should.

All I do is create a new Meteor app with meteor create --release x.x.x.x myapp then add the following

<img src="http://195.208.255.162/mjpg/video.mjpg?COUNTER"/> <img src="https://i.imgur.com/dufVgMI.jpg"/>

into the main.html view. It displays properly when testing on browser, but simply never renders on mobile.

It simply fails to pull anything from a url that has almost 100% uptime.

I have found a boilerplate as an example and insert the exact code in the router.jsx spot completely overriding the ReactDOM.render with the above snippet. Build it to mobile and works fine.

To build I do meteor build ../build --server=yourapp.meteor.com --debug

I am unsure what could be possibility preventing this to render.

Did you whitlelist the domains (https://guide.meteor.com/mobile.html#domain-whitelisting)?

1 Like

I did not.
I will check that out.

OKAY, awesome. Thank you very much. It definitely worked after checking out that settings portion.

I had to do

App.accessRule('http://url.com', {
    'minimum-tls-version': 'TLSv1.0',
    'requires-forward-secrecy': false,
});

App.accessRule('data:*', {
    type: 'navigation'
});