freshplanet / ANE-Google-Play-Game-Services

Enable user to log in with Google+ to upload high score and achievements
Apache License 2.0
57 stars 42 forks source link

Nothing happens when I call ANE's methods #37

Open lrasomattos opened 9 years ago

lrasomattos commented 9 years ago

Hello!

I'm having a problem with this ANE on my project. I've tried using both fresplanet's and overlawled's versions (I prefer the second one, because of showLeaderboard), and got the same results with them. Which is none.

The only thing that seems to work is the isSupported propperty, I put an "Available game service" message if isSupported is true when the game starts, and it shows up on Android. When I call signIn, showLeaderboard, reportScore, etc. Nothing happens.. but the code is being reached, since I have log messages all around them being printed.

I thought it could be a setup problem on google developer's console, or that I should wait a while until game services become available. But I think that eve then, at least a sign in popup would show up right?

My project setup is like this: I'm using flashdevelop 4.7, Platform: AIR Mobile 14.0 SDK AIR 16.0 JDK (for PackageApp) is the newest one

application.xml:

<android>
    <manifestAdditions>
        <![CDATA[<manifest android:installLocation="auto">
            <uses-permission android:name="android.permission.INTERNET" />
            <uses-permission android:name="android.permission.WAKE_LOCK" />
            <uses-sdk android:minSdkVersion="8" />
            <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
            <!-- GooglePlay Games Services -->
            <meta-data android:name="com.google.android.gms.games.APP_ID" android:value="\ 309114252771" />
            <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
            <activity android:name="com.freshplanet.googleplaygames.SignInActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
        </manifest>]]>
    </manifestAdditions>
</android>
<extensions>
    <extensionID>com.freshplanet.AirGooglePlayGamesService</extensionID>
</extensions>

I've followed nitacawo's tips here: https://github.com/freshplanet/ANE-Google-Play-Game-Services/issues/14

From Google's side, it looks like it should be working. App id has air. in the correct places, and so on. I have a free and a paid version of my app, both connected to the same Games Services for leaderboards.

lrasomattos commented 9 years ago

I got it working, it was an aplication.xml problem (i forgot to add tag surrounding the additions)