SocketIOClient on Xamarin doesn't work on real

2019-08-03 04:44发布

问题:

I'm trying to use SocketIOClient on Xamarin.Android and Xamarin.iOS, and it works corrrectly but only on imulators. When I start apps on real devices socket doesn't work and app just doesn't show any errors in try-catch blocks. May by anyone has same problem and fixed it. Thanks.

回答1:

Did you use this library SocketIoClientDotNet. If yes, I also have your problem on iOS. My solution is get the SocketIoClientDotNet code and rebuild in my xamarin project.

Checkout my demo here: https://github.com/tudushare/XamarinSocketIODemo