Closed cdauphinee closed 3 years ago
Hey Collin, thank you for reporting this. I left a message under the PR to see if the author has at least plans to get it merged. Otherwise, as you suggested, we might consider running on a fork, at least until they are made compatible.
Hey @cdauphinee,
I've just released a new version of pusher-websocket-unity that address the issue: https://github.com/pusher/pusher-websocket-unity/releases/tag/1.1.2%2B200211
for more details: https://github.com/pusher/pusher-websocket-unity/issues/15#issuecomment-584607270
Thank you.
I have been facing the same issue for a while and searched on every nook and cranny of the internet to look for a solution. Here's what worked for me.
What's the difference?
Hope this helps. Cheers!
I tried to include the latest release in an iOS Unity build, and immediately receive the following exception upon connecting on a device:
It looks like Newtonsoft.Json's
DeserializeObject
isn't compatible with il2cpp, and the maintainers don't seem to have any intention of fixing it: https://github.com/JamesNK/Newtonsoft.Json/pull/2044I checked a couple of our Unity projects, and it seems like they're all using the fork linked in the issue above.
I don't have any good proposals for how to fix this. Removing the Newtonsoft.Json dependency and requiring the consumer to provide a deserializer would make the library awkward and unwieldy for non-Unity consumers.
Maybe making a Unity fork is the only reasonable solution?