0

I'm facing a weird problem.

While I was testing my app on xCode, everything was working like a charm, even internet accessing.

I uploaded my build to Testflight and my testers won't be able to connect.

Even more surprising : I realize that the one I'm using on my phone is the xCode build, not installed via testflight, and still wont be able to access the internet while it was perfectly able to do so while connected to xCode...

EDIT : tested my web service which works as well

Did any one of you already face this problem ? How should I solve this ?

Thanks very much in advance

Vincent

Vincent Monteil
  • 568
  • 5
  • 22
  • Is your backend accessible from outside of your internal network? Are you facing this issues on WiFi or on mobile networks? Do other apps on these devices work fine? – Losiowaty Jul 24 '18 at 08:01
  • 1
    Does your web service use `http` or secure `https` – Ladislav Jul 24 '18 at 08:23
  • @Losiowaty My backend is on an online web server. I can access it from safari on the same device. I only tested on cellular network but my testers all reported the same problem both on wifi and cellular networks. – Vincent Monteil Jul 24 '18 at 08:42
  • @Ladislav Only http – Vincent Monteil Jul 24 '18 at 08:43
  • So by default `iOS` will not allow `http` connections because of `App Transport Security`, so did you enable `http` access to your webservice in the app? - Check this link https://stackoverflow.com/questions/30731785/how-do-i-load-an-http-url-with-app-transport-security-enabled-in-ios-9 – Ladislav Jul 24 '18 at 08:44
  • @Ladislav I'll give this a try. I had this idea as well but how comes that it will work whiled deployed with xCode and connected to the mac ? ? – Vincent Monteil Jul 24 '18 at 08:50
  • I would expect it not to work anywhere you are correct, but it is worth a try...you can also make a call to a test `https` webservice and see if you get a response there... – Ladislav Jul 24 '18 at 08:51
  • Thanks very much, I'll give it a try ASAP :) – Vincent Monteil Jul 24 '18 at 08:53

1 Answers1

-1

Ok,

I Had a deeper look into it after @Ladislav and @Losiowaty suggestions. The problem was actually elsewere. The app behavior was like if there was a network problem. I didn't remember about it but I changed one line in the returned jSon use, which caused a non fatal error and the results not showing, which couldn't be seen without reading logs.

Thank you all for your time anyway !

Vincent Monteil
  • 568
  • 5
  • 22