How to keep user in the game room even if activity loses focus

余生颓废 提交于 2019-12-04 21:04:29

Currently, you cannot keep the game running if the Activity loses focus. This restriction is deep down in the API, not in GameHelper. We may or may not change in the future, but for now there is no way to achieve that behavior. The recommendation is calling leaveRoom() on onStop() to ensure proper cleanup.

I remove gamehelper.onstop() in BaseGameActivity.onstop(), and it works.

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