Google Play Game Services: strange sign in behavior

后端 未结 1 1205
面向向阳花
面向向阳花 2020-12-09 22:18

Recently I\'ve added Google Play Game Services support in my app (added BaseGameActivity and GameHelper), and it sign-in and sign-out workflow worked fine. In my graphics th

1条回答
  •  -上瘾入骨i
    2020-12-09 23:02

    It took 2 days to find a silly mistake. When you extend BaseGameActivity make sure you call all its methods in your activity methods (if you override them), for example:

    @Override
    public void onActivityResult(int requestCode, int resultCode, Intent data)
    {
     super.onActivityResult(requestCode, resultCode, data);
     ....
     
    }
    

    BaseGameActivity calls its aggregated mHelper's methods which do all the magic.

    0 讨论(0)
提交回复
热议问题