Google Play Game Services - How to Not Leave Room onPause

China☆狼群 提交于 2019-12-01 00:22:48

Short answer: No.

Long answer: It's not possible because of the way the API is designed. Bruno has explained that several times. If the API were designed to allow you to retain state, sure. But Google made the decision not to go in that direction.

I don't see that the question is off topic, but you ARE asking for something counter to the API. That's just the way it works, and there's not much use asking why it's not possible.

I have edited BaseGameActivity.onStop() and have removed gamehelper.onStop(). So I stop gamesclient only in onDestroy. My game work perfectly also in background now.

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