SocketIOUnity icon indicating copy to clipboard operation
SocketIOUnity copied to clipboard

Not working with IL2CPP build on android

Open awais-100 opened this issue 3 years ago • 12 comments

It's not working with IL2CPP build on Android, working fine with Mono build, but we can't use Mono because Unity doesn't support Arm64 build with Mono.

awais-100 avatar Jul 27 '22 13:07 awais-100

doesnt work for me on android at all. it connects but cant emit anything

cheneliezer avatar Jul 30 '22 16:07 cheneliezer

So i am having the same issue, it will not build throwing this error : Mono.Linker.MarkException: Error processing method: 'System.Void System.Text.Json.Nodes.JsonArray::Add(T)' in assembly: 'System.Text.Json.dll'

wout-junius avatar Aug 08 '22 13:08 wout-junius

don't build with Mono, use IL2CPP instead; people managed to make it work with Android, always see the older issues to know: https://github.com/itisnajim/SocketIOUnity/issues/19 https://github.com/itisnajim/SocketIOUnity/issues/16 https://github.com/itisnajim/SocketIOUnity/issues/12 https://github.com/itisnajim/SocketIOUnity/issues/5

itisnajim avatar Aug 09 '22 10:08 itisnajim

Are there another way to fix this issue without change back to 4.0.0? because it's working server I can't change it.

Pathawut avatar Aug 09 '22 10:08 Pathawut

4.2.0 working too

More info please.

itisnajim avatar Aug 09 '22 10:08 itisnajim

I working on 4.4.0 and It doesn't work on IL2CPP Build. when I use socket.connect() , It doesn't have any reply message back. It keep try to attempt reconnect over and over. but It work perfectly in Editor.

Pathawut avatar Aug 09 '22 12:08 Pathawut

had any solutions?

kimminsu-123 avatar Aug 10 '22 02:08 kimminsu-123

I working on 4.4.0 and It doesn't work on IL2CPP Build. when I use socket.connect() , It doesn't have any reply message back. It keep try to attempt reconnect over and over. but It work perfectly in Editor.

Exactly same happens with me

awais-100 avatar Aug 10 '22 06:08 awais-100

had any solutions?

I have moved to the best HTTP 2 asset available on the asset store, working perfectly

awais-100 avatar Aug 10 '22 06:08 awais-100

had any solutions?

I have moved to the best HTTP 2 asset available on the asset store, working perfectly

https://assetstore.unity.com/packages/tools/network/best-http-2-155981

this link?

kimminsu-123 avatar Aug 10 '22 07:08 kimminsu-123

Open build settings and replace IL2CPP Code Generation with Fast (smaller) builds. it works

kimminsu-123 avatar Aug 10 '22 09:08 kimminsu-123

Open build settings and replace IL2CPP Code Generation with Fast (smaller) builds. it works

It's work. Thank you very much.

Pathawut avatar Aug 10 '22 10:08 Pathawut

Open build settings and replace IL2CPP Code Generation with Fast (smaller) builds. it works

It does, but why?

Kouznetsov avatar Nov 05 '22 13:11 Kouznetsov

IL2CPP

https://forum.unity.com/threads/il2cpp-build-time-improvements-seeking-feedback.1064135/

itisnajim avatar Nov 07 '22 12:11 itisnajim