iOS 9. Cellular data error

I had a problems with cellular data on iOS 9.0
No answer from HTTP requests when using cellular data instead of WiFi.
Here is the error log from console:

<Error>: tcp_connection_handle_connect_conditions_bad 3 failed: 2 - Path was denied by NECP policy

Unity3D version: 4.6.8
XCode version: 7.0
iOS 9 has a bugs with cellular data. Cellular data settings doesn’t saved for applications. It looks like when cellular data is disabled for application HTTP requests have no answer at all. No errors. No success response.

I had something similar but slightly different. Some of my beta testers who updated to IOS 9 couldn’t download the external asset bundle file, there was an error about not being able to access a http:// resource, use https:// or enter an exception in some file somewhere.

For my purposes, since I already had an SSL certificate, I just changed it to https:// and got it working again. Well, not quite, I also had to upload the files to the site that had the SSL certificate, but once I did that, everything ran again.

This is the other problem.
CFNetwork SSLHandshake failed iOS 9: http://stackoverflow.com/questions/30720813/cfnetwork-sslhandshake-failed-ios-9

My bug is with cellular data only. I’ll do a research and post a reply.

Check this thread :

You have to add an additional row of info in XCode regarding internet connections.

  • Opened my Projects info.plist file
  • Added a Key called NSAppTransportSecurity as a Dictionary.
  • Added a Subkey called NSAllowsArbitraryLoads as Boolean and set its value to YES as like following image.

jesusluvsyooh, as I posted above this is the other problem. I’ve already had NSAppTransportSecurity property in the plist file.

My problem was caused by other bugs.
First, there is a bug in iOS 9 with saving cellular data settings http://apple.stackexchange.com/questions/206484/cant-modify-selection-of-use-cellular-data-for-for-some-apps-in-iphone-6-afte
Second, there was bug in my application when I checked internet connection. Application.internetReachability has different behaviour on editor and device.
There wasn’t any difference after enabling or disabling cellular data on iPhone. Settings wasn’t saved and my application got an exception at the start after checking Application.internetReachability.

My bad, late nights… long hours… forgive me senpai. :frowning:

@Andrey-Postelzhuk did you ever resolve this? We get complains about this from players but not from everyone. Not sure what the common factor is.

@andrew-fray no I didn’t resolve this. It was iOS bug + bug in my application. Answer is in this post: iOS 9. Cellular data error. - Unity Engine - Unity Discussions