PhoneGap Google Play Login Unknown Error

Get help using Construct 2

Post » Sun Sep 06, 2015 1:37 am

Hey everyone,

I've been using phonegap plugin to access leaderboard for my android games. However in the latest game it keeps showing unknown error when trying to login. I am using the same events and codes from the previous games so I have no idea what went wrong. All the games are signed and exported using intel XDK with Cordova.

The events are simple:

On touch "Google Play Object" and Phonegap is not logged in: Phonegap Login

It worked for all my previous games but just for this one, it keeps showing "Unknown Error"

When I click on the object, it shows that it's trying to connect but after a few seconds it shows that error.

Any help is greatly appreciated.
B
23
S
10
G
2
Posts: 104
Reputation: 3,071

Post » Mon Sep 07, 2015 3:48 am

i got the same error with the scirra Phonegap plugin, solved it by using the Google play plugin made by Cranberrygame
B
38
S
11
G
5
Posts: 485
Reputation: 5,340

Post » Mon Sep 07, 2015 7:37 pm

@fldr: The Cranberrygame's plugin is Phonegap Game.

@mrneko: I've the same error. I'll follow this thread. If I figure out the solution, I'll post it here.
B
74
S
14
G
4
Posts: 1,015
Reputation: 8,133

Post » Mon Sep 07, 2015 8:24 pm

Oh sorry, i thought its about the scirra Google play plugin.
B
38
S
11
G
5
Posts: 485
Reputation: 5,340

Post » Tue Sep 08, 2015 4:48 pm

@fldr: No problem. ;)

Could you explain to us what you did to make Phonegap Game to work?
B
74
S
14
G
4
Posts: 1,015
Reputation: 8,133

Post » Tue Sep 08, 2015 6:33 pm

ok, but i guess you two already did the same but here is how it works for me:
-at first i set everything at google play up, like achievments
-then i filled in the game id in phonegap plugin properties
-made an event like shown below
Image
you can see it working like this in my games Find the Fruits and Adventurerun, in Find the Fruits this event is triggered at start of layout while in Adventurerun its triggered when you press on the button.
B
38
S
11
G
5
Posts: 485
Reputation: 5,340

Post » Wed Sep 09, 2015 1:40 am

@fldr

Thanks for the update. Yes I did that but it didn't working. I even copy the same code onto a new game and it's working there. I posted on the plugin page but no reply from the developer yet. Been looking for alternate solutions but that's the only plugin that I can use to implement Leaderboard because I am building with Intel XDK.
B
23
S
10
G
2
Posts: 104
Reputation: 3,071

Post » Wed Sep 09, 2015 1:56 am

@all
@RenatoB
got same here
http://postimg.org/image/bu1j6nqxr/
i use same event as @RenatoB , on start of layout if game is nt log in > log in
but always got this error after lunching the game on my phone
it is related to the plugin ?
B
46
S
16
G
8
Posts: 799
Reputation: 8,345

Post » Wed Sep 09, 2015 2:26 am

@matrixreal

From what I've read around it should be related to plugin. Someone suggested to re-link the game service on Google Play linked app. I did that too but didn't work for me. I think it could be something to do with the signing certificate.

Did you build your app before or after you create the game service?

I'm asking because when I built the first version of the app, I forgot to change my APP ID and used the one from my previous game. After that I changed it and it stopped working. All the other games that had the correct APP ID on the first build are all working properly. Just my speculation but it really doesn't make sense that this is happening.
B
23
S
10
G
2
Posts: 104
Reputation: 3,071

Post » Wed Sep 09, 2015 4:09 pm

fldr wrote:ok, but i guess you two already did the same but here is how it works for me


You're right. Maybe the problem is in the Game Service setup (Plays Store). Can you post some screenshots about these configurations?
B
74
S
14
G
4
Posts: 1,015
Reputation: 8,133

Next

Return to How do I....?

Who is online

Users browsing this forum: max2612 and 5 guests