GKSession peer disconnect causes other peers to appear disconnected

做~自己de王妃 提交于 2019-12-01 08:11:17

I heard from apple support that this disconnect behavior is happening because devices connect "through" each other. For example, device A connects to device C through device B. If device B drops, device A will see device C disconnect and reconnect right away. I have not heard if/when this will be fixed.

This is probably too late, but I think that if you change the session mode from GKSessionModePeer to GKSessionModeServer on the server it'll fix the issue.

Basically with peer they all connect to each other, the server one technically works the same way, but you get proper notifications for disconnects.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!