ANE-Google-Play-Game-Services is a native extension to use Google Play Game services. It provides a set of methods to allow players to use a Google+ account to sign in, which provides the application with the ability to read the player info, such as name and achievements.
The extension has methods to sign in/out, report the completion percentage of an achievement (based on its id) and report a new score (based on the leaderboard id). It’s also possible to show the player’s standard achievements, as well as monitor the authentication process by using events.
Sample
public function startAtLaunch():void; public function signIn():void; public function signOut():void; public function reportAchievement(achievementId:String, percent:Number = 0):void; public function reportScore(leaderboardId:String, newScore:Number):void; public function showStandardAchievements():void; public function getActivePlayerName():String;
@as3gamegears http://t.co/uayUtRZuWi
RT @as3gamegears: New: ANE-Google-Play-Game-Services (native extension to use Google Play Game services) http://t.co/yAKgxTsVxJ #as3 #flash…
Hi, I have a problem with running this Library. I recieve the following error:
Error #1014: Class com.freshplanet.ane.AirGooglePlayGames::AirGooglePlayGamesEvent could not be found.
More details: https://github.com/freshplanet/ANE-Google-Play-Game-Services/issues/3
Please, help!
Hi! Please help! I included ANE in my project, but no authentication dialog comes up and I recive messages like that: Could not find method android.view.View.getDisplay, referenced from method com.google.android.gms.internal.bn$b.b.
VFY: unable to resolve virtual method 3664: Landroid/view/View;.getDisplay ()Landroid/view/Display;
and so on. Finally I got GameHelper: onConnectionFailed
Connection failure:
GameHelper: – code: SIGN_IN_REQUIRED(4)
GameHelper: – resolvable: true
GameHelper: – details: ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{41157e88: android.os.BinderProxy@412a7688}}
GameHelper: onConnectionFailed: since user didn’t initiate sign-in, failing now.
GameHelper: State change CONNECTING -> DISCONNECTED
GameHelper: Notifying LISTENER of sign-in FAILURE (no error)
[AirGooglePlayGames](4440): onSignInFailed
[AirGooglePlayGames](4440): ON_SIGN_IN_FAIL
There is no exception with wrong app id. Please, help!
Have you tried to open an issue at their github page? You can also try to ping @freshplanet about the problem.
The issue is similar to https://github.com/freshplanet/ANE-Google-Play-Game-Services/issues/2 except that when I try signin after ON_SIGN_IN_FAIL it works. It seems to be start at launch issue..
Try to comment on that issue, maybe someone has a similar problem.
Did anyone managed to use this extension? With a positive result.
I am trying to add it in my game, but I could really use some help
Hi. The ane works nicely, but I cant seem to be able to show the leaderboard. I cant find the function. However, I can show achievements since there is a direct function for that. Am i missing anything?
Hi there, chamster! As far as I could see in the API, there is no method to show the leaderboard.
I see! Then is there any version that can show leaderboard? The report score method is there, it’s just seem logical to have a show leaderboard method there too.
I thought the very same when I first saw this ANE. Why is the show leaderboard method missing? I guess that method is not so easy to implement, that’s why it’s missing.
Leaderboard method is quite easy to implement. See improvement by Overlawled linked in issue section. I released game with this ane yesterday, because It seemed to work fine. Unfortunately, due to google play developer console, some errors still occurs.
Thanks kubusabdi! overlawled’s ane solves my problem.