简体   繁体   中英

Google Play Games Service achievements check

I'd like to know if there is some kind of local check when doing achievement unlock.

sGamesClient.unlockAchievement(getResources().getString(R.string.achievement_a_newcomer));

I have an achievement "Play a multiplayer game", but once a multiplayer game is done, all the next multiplayer play will call line above but it's useless to call a server to check it, so is there some kind of local cache checking before communicating with play services server or do i have to implement it myself using Prefs ?

Thanks

再次调用该方法不是问题:如果成就已经解锁,它将不会再次解锁,并且它不会与服务器通信,因为这些内容在本地缓存。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM