I’m trying to load a remote image via “display.loadRemoteImage”, it only works on simulator, it doesn’t work mobile phone. Is there a setup I need to do to make it work I already enable the write external strorage and internet permision.
What device? If it’s iOS running iOS 9 or later, you can’t access http:// addresses without adding some exceptions to your build.settings. It’s called App Transport Security (ATS). Basically Apple is forcing people to use https:// addresses. It’s 2016 and there is no excuse for a website to not be encrypted (Apple’s thinking, but I happen to agree). In fact iOS 10 will do away with the exceptions with out written approval from Apple. You can read about it here:
Your hosting provider may support them already. Its like a trivial install process. For my host, I was presented a screen of my domain names and a check box. I checked the ones I wanted SSL on, hit the submit button and done. For those sites running on my full server at Digital Ocean, I had to install a small script, ran it, listed my domains to set SSL up on and hit submit.
I’m using PC, the script works fine on emulator it displays the image, but when I publish it and try it on my android device it doesn’t display the image.
What device? If it’s iOS running iOS 9 or later, you can’t access http:// addresses without adding some exceptions to your build.settings. It’s called App Transport Security (ATS). Basically Apple is forcing people to use https:// addresses. It’s 2016 and there is no excuse for a website to not be encrypted (Apple’s thinking, but I happen to agree). In fact iOS 10 will do away with the exceptions with out written approval from Apple. You can read about it here:
Your hosting provider may support them already. Its like a trivial install process. For my host, I was presented a screen of my domain names and a check box. I checked the ones I wanted SSL on, hit the submit button and done. For those sites running on my full server at Digital Ocean, I had to install a small script, ran it, listed my domains to set SSL up on and hit submit.
I’m using PC, the script works fine on emulator it displays the image, but when I publish it and try it on my android device it doesn’t display the image.