1

I’m trying to test my app in iPhone, but Xcode throws this error:

You are using download over http. Currently Unity adds NSAllowsArbitraryLoads to Info.plist to simplify transition, but it will be removed soon. Please consider updating to https.”

I'm using UnityWebRequest with URL "http://..." (to download a JSON file), I already added NSAllowsArbitraryLoads in true, but it doesn’t work. Is it really necessary to update to https, or are there other ways to do it if I don't have https?

The problem is that from Unity Editor it works, but it's not working from an iOS device.

karel
  • 5,489
  • 46
  • 45
  • 50
D. Guzman
  • 11
  • 1
  • `Currently Unity adds NSAllowsArbitraryLoads` they are telling you this is currently done so you don't have to do this. If you are not caring about the security you can simply use `https:// ...` and use a custom CertificateHandler which overrides [CertificateHandler.ValidateCertificate](https://docs.unity3d.com/ScriptReference/Networking.CertificateHandler.ValidateCertificate.html) to simply always return `true` – derHugo Feb 22 '19 at 08:32
  • Thank you so much! Now my problem is it works sometimes not always. Do you have any idea about this? – D. Guzman Feb 22 '19 at 22:24

0 Answers0