I have an app built in Unity and setup to be released on the Mac App Store that has networking tasks that work just fine in an OS X build, but once we set the Use Mac App Store Validation to true and submit to Apple, then networking calls fail to work. Both HTTP and HTTPS requests fail to work.
Does anyone have any ideas on what might be causing this or further tests I could use to figure out what the problem might be.
I have found a few more people having the same issue, but unfortunately no one has any answers:
http://stackoverflow.com/questions/36446063/network-calls-not-working-on-released-version-osx-app-built-using-unity3d
http://stackoverflow.com/questions/36062526/osx-mac-store-app-networking-fails-after-codesign-package
1 Like
I never figured out what was wrong Unity’s WWW class, but I was able to get around the issue using the System.Net.WebClient class. I implemented a simple wrapper that has a similar interface to Unity’s WWW class. Here’s the code I used: WebRequest.cs - Pastebin.com
We have exactly the same problem with our game…Thanks for pointing me to the right direction.
What version of Unity are you guys using?
1 Like
@MrEsquire : Do you know if this is a known bug? Is there an official Unity patch for this?
I’m having the same issue here, any case it may be fixed soon?
I dont know if known bug but check Unity bug tracker. It seems this issue has been around for months now, so surprised unity not commenting or aware, i do find the macos platform neglected these days… Thing is what networking feature you use, i released a macosx game uses inapp and leaderboards plugins with prime31 and app store validation works fine for me… So it effects some users only… You really need provide abit more detail, what exactly you doing? Connecting to a custom server? General internet access in app etc… To little information to try and find the root cause of issues…
We are using WWW class to get a JSON from our custom server (e.x. “https://admin.zoo.gr/app/llgames/admin?rm=fourpics_pack&locale=el_GR”)
A request like this will always fail when we use the WWW class.
I think they fixed similar issues in ios as far as i can remember…please check the patch change logs from p1 to p4 if any mention of www osx fix. Sorry cannot help further
ok thanks a lot for your help.
If your app is sandboxed then you need to explicitly state that your app needs incoming/outgoing network connections.
In my entitlements file it is declared that the app is sandboxed indeed.
<?xml version="1.0" encoding="UTF-8"?>
com.apple.security.app-sandbox
com.apple.security.network.client
Where should I explicitly state the incoming/outgoing network connections ?
That looks right to me. I’m on 5.3.5p7 and having no issues with sandboxing and www class.
We also have 5.3.5p7 and we have networking failure when we upload our signed binary to Apple (all GET requests to the following URL fail: “__https://s3.amazonaws.com/zoo.misc//misc/llgames_fourpics_data-el_GR.txt__” )
You are trying to access a non-secure URL, and it’s now prohibited in Android 9