Xamarin 上的 SocketIOClient 在真实设备上不起作用 [英] SocketIOClient on Xamarin doesn't work on real device

查看:31
本文介绍了Xamarin 上的 SocketIOClient 在真实设备上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Xamarin.Android 和 Xamarin.iOS 上使用 SocketIOClient,它工作正常,但仅适用于模拟器.当我在真实设备上启动应用程序时,套接字不起作用,并且应用程序在 try-catch 块中没有显示任何错误.可能任何人都有同样的问题并修复它.谢谢.

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.

推荐答案

你使用过这个库吗 SocketIoClientDotNet.如果是,我在 iOS 上也遇到了您的问题.我的解决方案是获取 SocketIoClientDotNet 代码并在我的 xamarin 项目中重建.

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.

在此处查看我的演示:https://github.com/tudushare/XamarinSocketIODemo

这篇关于Xamarin 上的 SocketIOClient 在真实设备上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆