floatinghotpot / socket.io-unity

socket.io client for Unity, power game client with node.js back-end
494 stars 75 forks source link

I can use it to send but it can't receive. [iOS] #19

Closed dithyapr closed 6 years ago

dithyapr commented 6 years ago

Good Morning sir, im very happy to use ur project and it works perfectly. But when i was trying to build it to iOS, it receive nothing from the url. Is there any solution? Thank you. (I already change the API Compability to .NET 2.0)

dithyapr commented 6 years ago

Okay, after doing a lot of research, for anyone who wants to Build this project for iOS heres the trick:

  1. Download Newtonsoft dll latest release from SaladLab. Thanks to them :D

  2. Open Newtonsoft.Json Folder and Compile the Newtonsoft.Json.csproj. (You can find the dll inside the bin)

  3. In your unity asset, delete the Newtonsoft.Json.dll and replace with dll from bin.

  4. Make an xml file and insert it into ur unity asset. link.xml

  5. In unity player settings, dont forget to change your scripting backend to IL2CPP and API Compability to .NET 2.0

Cheers. :D

(Once again, thanks to floatinghotpot and SaladLab).