[SOLVED] Google Play Services - not working?

0 favourites
From the Asset Store
Google Analytics 4 Plugin for Construct 3 enables metrics and analytics for your games easily.
  • I'm using the Google Play Services input for my android app. Now I try to give achievements when stuff happens and also open leaderboards when clicking on the specified button. But it doesn't happen.. I export it all with Cordova and build the app with Intel XDK. And yes I added the google play services plugin to my intel XDK project

    Anyone know why I can't open the leaderboard or anything like that? I'm using the beta test function at the google play dev console. And also published the google play services thing and it's all connected.

  • condolent

    I think you have the same problem that i'm having, I've got issues with Google Play Games Services too. I can't get my game to login to Play Services after setting everything up so as a result my leaderboard etc won't open.

    I've setup Play Services on the developer console, setup the beta testing and added events to login to Play services on my game but nothing happens when i try to get it to login.

    I would like some help to get this sorted too as i don't know what the issue is.

  • The Construct 2 Google Play Games plugin is made for HTML-5 websites. For converted APKs through Cordova / Crosswalk, I'm using Cranberry's PhoneGap Google Play Games plugin.

  • Oh yes, sorry but i forgot to mention that i'm using Cranberry's Phonegap Google Play Games plugin too but its still not working for me.

  • Are you using XDK to convert it?

  • mrEkli

    Yes i am, i've even changed the script in my 'intelxdk.config.additions.xml' to the following as shown on the shatter-box website where i got the plugin from -

    <intelxdk:plugin intelxdk:name='https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.game#45191b3570a2ae4dc9646685b65f4a7994ed9952' intelxdk:value='https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.game#45191b3570a2ae4dc9646685b65f4a7994ed9952' >

    <intelxdk:param intelxdk:name='APP_ID' intelxdk:value='YOUR_GOOGLE_PLAY_GAME_APP_ID' />

    </intelxdk:plugin>

    I've replaced 'YOUR_GOOGLE_PLAY_GAME_APP_ID' with my Google Play Games ID, although i've left 'APP_ID' as it is.

  • where can I download this plugin? It's to construct 2, right?

  • SteveKane

    Replace that chunk of XML with this one.

    <intelxdk:plugin intelxdk:name="https://github.com/cranberrygame/cordova-plugin-game" intelxdk:value="https://github.com/cranberrygame/cordova-plugin-game" >

    <intelxdk:param intelxdk:name='APP_ID' intelxdk:value='YOUR_GOOGLE_PLAY_GAME_APP_ID' />

    </intelxdk:plugin>

    condolent

    You could get it here:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • mrEkli ok so I've got the whole pack and stuff now but I cannot see a google play plugin. Does anyone know if it's been removed for some reason??

    EDIT: Nevermind, I believe it's called cranberrygame_PhonegapGame_1.0.65 actually, so there's the name for future confused people

  • My build keeps failing. I've added the plugin to c2 and also to my intel XDK project (not sure if I needed to do that) and used the XML code mrEkli typed. But when I'm trying to build for android the build fails due to the plugin not installing:

    Error: Plugin "https://github.com/cranberrygame/cordova-plugin-game" failed to install.

    Why is that?

    intelxdk.condig.additions.xml

    <intelxdk:plugin intelxdk:name="https://github.com/cranberrygame/cordova-plugin-game" intelxdk:value="https://github.com/cranberrygame/cordova-plugin-game" >
    <intelxdk:param intelxdk:name='APP_ID' intelxdk:value='MY_APP_ID_IS_HERE' /> 
    </intelxdk:plugin>
    [/code:2h1ehqr6]
    
    [b]Build-log[/b]
    [code:2h1ehqr6]The build failed. An error occurred while building the application. Verify your build assets are correct and try again.
    Build Log:
    Building a Cordova 5.1.1 application.
    The application name is "Angry Viking"
    The package name is "theangry.viking"
    Error: Plugin "cordova-plugin-game" failed to install.
    Plugin "cordova-plugin-device" (1.0.1) installed.
    Plugin "cordova-plugin-pushnotification-parsepushnotification" (1.0.32) installed.
    Plugin "android.support.v4" (1.0.0) installed.
    Plugin "com.google.playservices" (21.0.0) installed.
    Plugin "cordova-plugin-game" (1.0.105) installed.
    Plugin "cordova-plugin-legacy-whitelist" (1.1.0) installed.
    Plugin "com.rjfun.cordova.plugin.iad" (0.1.8) installed.[/code:2h1ehqr6]
  • Solved it all by removing the code in additions.xml and just letting the plugin install via the project. This works fine and the code in additions.xml is NOT needed if you actually implement the plugin in the intel xdk project! Hope someone sees this and that it solves their issue

  • Solved it all by removing the code in additions.xml and just letting the plugin install via the project. This works fine and the code in additions.xml is NOT needed if you actually implement the plugin in the intel xdk project! Hope someone sees this and that it solves their issue

    So to conclude you downloaded the Phonegapgame plugin for Construct 2, then exported and Intel XDK did all the rest, or you configure something else on the project tab?

  • Draconiz717 no you have to add the cordova plugin aswell, go to add plugin (Intel XDK project settings) -> Add plugin -> Add a third party plugin -> type in 'cordova-plugin-game' without quotationmarks and then type in your app ID when prompted! After this, you need to go into the "develop" tab and delete the whole segment for cordova-plugin-game. This text is generated by the construct 2 plugin and you will need to remove this piece of code every time you want to make a new build. Or at least everytime you export your C2 project

  • After this, you need to go into the "develop" tab and delete the whole segment for cordova-plugin-game. This text is generated by the construct 2 plugin and you will need to remove this piece of code every time you want to make a new build. Or at least everytime you export your C2 project

    From with file?

    additions.xml (there are two of them. What exact code do I get rid of?)

  • metalmuscles intelxdk.config.additions.xml and the whole code that should be deleted:

    <intelxdk:plugin intelxdk:name="cordova-plugin-game" intelxdk:value="https://github.com/cranberrygame/cordova-plugin-game" intelxdk:id="cordova-plugin-game">[/p]
    	<intelxdk:param intelxdk:name="APP_ID" intelxdk:value="1064334934918" />[/p]
    </intelxdk:plugin>[/code:2eyjzrbe]
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)