achievements

Game Center- handling failed achievement submissions?

耗尽温柔 提交于 2019-12-06 13:24:08
问题 Im a noob in game center @ games generally. Im making my second game now and implemented the game center. If the internet is available, there is no problem, everything works well. But just now I purposely make the internet unreachable, and when I get an achievement, obviously it does not register to the Game Center's Achievement. How and what's the best way to handle this issue? Thank you.... 回答1: You could add the GKAchievement objects that fail to register to an array and then resend them

Check if you've already unlocked an achievement in Game Center/GameKit

岁酱吖の 提交于 2019-12-06 02:15:38
I've been stumped on this for quite a long time. I understand how to unlock an achievement in Game Center and I even got a whole messaging system working. But I can't figure out how to check if an achievement has already been unlocked :( Apparently this doesn't work: GKAchievement *achievement = [[GKachievement alloc] initWithIdentifier:ident] autorelease]; NSLog(@"%i",achievement.completed); It always traces "0". Unlocking an achievement does work: GKAchievement *achievement = [[GKachievement alloc] initWithIdentifier:ident] autorelease]; achievement.percentComplete = 100; So it's not that I

OAuthException 2500 (Unknown path components) when trying to register Achievement in Facebook

白昼怎懂夜的黑 提交于 2019-12-05 16:11:30
I am trying to register a Facebook open graph achievement for an app. I obtain the app access token and post the following request using open graph API explorer: https://graph.facebook.com/752901688356092/achievements&achievement=https://googledrive.com/host/0B1R_JKMKJc2KbkNqZTdleEZvOUE/brags/fb_achive_100_words.html&display_order=100&access_token=752901688356092|pPwn52AvX-Pkj2n8Tavopew5Rav (note that app ID an access token above are not the real ones). However, I get the following response: { "error": { "message": "Unknown path components: /achievements&achievement=https://googledrive.com

Retrieving game center achievement by identifier

萝らか妹 提交于 2019-12-05 10:07:21
I have a question related to Game center achievements. Is it possible to retrieve the name/description of an achievement by its identifier? I am trying to avoid hardcoding every identifier with its corresponding name, so is there a solution that can get the name? thanks, Sami Of course, that's exactly why you have localization support for achievements (as well as leaderboards) inside iTunes Connect. However, there is no way to ask Game Center about localized info for just one achievement based on it's ID. Instead, you ask for info about all achievements which gives you an array of

Unlock achievement in google play games silently, without showing notification

女生的网名这么多〃 提交于 2019-12-05 08:31:43
I'm using google play services, achievements in my android game (it's actually unity, but doesn't matter). To unlock achievement I use plugin which calls unlock(GoogleApiClient apiClient, String id) method. When achievements are set as completed, google shows its own notification, like this: . I need to unlock achievement silently, without showing this notification. Is there anything to hide it? For anyone else who wants an answer for this: When you build your GoogleApiClient using new GoogleApiClient.Builder(this) you are giving Game Services an activity with which it can show notifications.

Publish Android App with leaderboards and no achievements

一个人想着一个人 提交于 2019-12-05 01:06:06
I have got my leaderboards integrated into my android app, but don't plan on adding achievements. I have completed the Game Services setup in the Developer console on Google Play, all apart from the achievements. When I go to the Publish section it says my achievements are missing. Is it possible to publish it without achievements? Although you do need to put in some achievements (5 of them) for the Developers Console, they can just be markers, and not actually used in your code in any way. Publish away! 来源: https://stackoverflow.com/questions/21957000/publish-android-app-with-leaderboards-and

Offline Game Center iOS Achievements

最后都变了- 提交于 2019-12-04 18:49:01
问题 Trying to figure out best way to work with Achievements in Game Center in case of offline mode (e.g. Airplane mode turned on). As far as I understand Game Center in iOS 5+ takes care of offline submitted achievements and scores. It acts like a proxy cache and submits them to online Game Center next time user is online. Considering this here is what I do: At the user authentication success I load achievments and store them in a dictionary. [GKAchievement loadAchievementsWithCompletionHandler:^

Game Center- handling failed achievement submissions?

纵然是瞬间 提交于 2019-12-04 18:44:55
Im a noob in game center @ games generally. Im making my second game now and implemented the game center. If the internet is available, there is no problem, everything works well. But just now I purposely make the internet unreachable, and when I get an achievement, obviously it does not register to the Game Center's Achievement. How and what's the best way to handle this issue? Thank you.... You could add the GKAchievement objects that fail to register to an array and then resend them when you get back connectivity. You should also consider committing that array to persistent storage, in case

Google Play Game Services get achievements list

好久不见. 提交于 2019-12-04 15:49:20
I'm integrating Google Play Game Services in my game. Now I want to retrieve a list of achievements without starting the achievements intent . I want the list behind that intent so that I can populate my own UI elements with this information. I'm not using the old GooglePlayServicesClient, I'm using the GoogleApiClient! Thanks for your help ;) free3dom The code to retrieve a list of achievements can be found in this answer . Below is the code snippet - see the linked answer for a full description: public void loadAchievements() { boolean fullLoad = false; // set to 'true' to reload all

Offline Game Center iOS Achievements

天涯浪子 提交于 2019-12-03 12:38:40
Trying to figure out best way to work with Achievements in Game Center in case of offline mode (e.g. Airplane mode turned on). As far as I understand Game Center in iOS 5+ takes care of offline submitted achievements and scores. It acts like a proxy cache and submits them to online Game Center next time user is online. Considering this here is what I do: At the user authentication success I load achievments and store them in a dictionary. [GKAchievement loadAchievementsWithCompletionHandler:^(NSArray *gcAchievments, NSError *error) { if (error) { ..skipped ..} //This dictionary will store