[SOLVED] Google Play Services - not working?

Get help using Construct 2

Post » Mon Oct 12, 2015 5:51 pm

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 :P

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.
Last edited by condolent on Sun Oct 18, 2015 1:33 pm, edited 1 time in total.
Website Twitter Indie Developer
B
20
S
6
G
4
Posts: 206
Reputation: 2,954

Post » Wed Oct 14, 2015 6:42 pm

@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.
B
4
S
2
Posts: 112
Reputation: 832

Post » Wed Oct 14, 2015 10:54 pm

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.
B
9
S
2
G
1
Posts: 7
Reputation: 1,115

Post » Wed Oct 14, 2015 11:50 pm

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.
B
4
S
2
Posts: 112
Reputation: 832

Post » Thu Oct 15, 2015 12:06 am

Are you using XDK to convert it?
B
9
S
2
G
1
Posts: 7
Reputation: 1,115

Post » Thu Oct 15, 2015 12:10 pm

@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.
B
4
S
2
Posts: 112
Reputation: 832

Post » Thu Oct 15, 2015 2:57 pm

where can I download this plugin? It's to construct 2, right?
Website Twitter Indie Developer
B
20
S
6
G
4
Posts: 206
Reputation: 2,954

Post » Thu Oct 15, 2015 10:16 pm

@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: plugins-construct2-cordova-plugins_t109586
B
9
S
2
G
1
Posts: 7
Reputation: 1,115

Post » Sun Oct 18, 2015 10:55 am

@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 :)
Website Twitter Indie Developer
B
20
S
6
G
4
Posts: 206
Reputation: 2,954

Post » Sun Oct 18, 2015 11:47 am

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
Code: Select all
<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>


Build-log
Code: Select all
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.
Website Twitter Indie Developer
B
20
S
6
G
4
Posts: 206
Reputation: 2,954

Next

Return to How do I....?

Who is online

Users browsing this forum: Syazanie Amirin and 6 guests