Google play leaderboard with Crosswalk

Get help using Construct 2

Post » Mon Jan 26, 2015 3:08 pm

I don't exactly understand if it's possible or not - manual says that it's incompatibile, but on the other hand there are described extra steps for exporting mobile app using Cordova.
I configured leaderboard, filled all keys and secrets - it was paiful process but it works on test url (localhost:5000). It also seems to work on android build - it redirects player to google login page, but after I sign in, it doesn't go back to game. Anyone else have experience with that?
B
3
Posts: 24
Reputation: 298

Post » Mon Jan 26, 2015 4:55 pm

I wouldn't recommend to use the scirra "Google Play Games" Plugin on mobile (crosswalk/phonegap exports). You are using the web-facing login that would work anywhere but this is not what users expect on mobile devices. Use the cranberry "game" plugin for that. It is really great and works for ios and android at the same time.

The cranberry plugin opens the in-app-login to the game service, It looks and feels more integrated. The most important part is that you can just open the "leaderboards" and "achievements" with one command. The scirra plugin just supports you with the data so you will have to build your own lists and views (complex). Both plugins should work on cordova exports though I think.

Here is a game of mine if you want to see the cranberry "game" plugin in action:
https://play.google.com/store/apps/deta ... zardattack
B
34
S
9
G
3
Posts: 206
Reputation: 7,851

Post » Mon Jan 26, 2015 8:26 pm

Thanks, I'll definatelly give it a try :)
B
3
Posts: 24
Reputation: 298

Post » Sun Feb 08, 2015 2:45 pm

I think that Phonegap Game is not working on release 190
I can't see the Plug-in

Someone have the same issue?
B
7
S
1
Posts: 2
Reputation: 407

Post » Mon Feb 09, 2015 1:52 pm

Hi Marco (MACPK),

Tried your game 'Battle Wizard Attack' just now and also sent you an email from your website. How did you get the leaderboard to have similar colors to the actual game? I was under the impression google provides the pop-up and hence the colors would be more in line with their standard pop-ups.

By the way, very nice graphics and game!
B
3
Posts: 9
Reputation: 195

Post » Tue Feb 10, 2015 11:07 pm

@suneelnairk Thx a lot, a good rating is also ver welcome any time ;-) You can't set up that color. I think google is somehow analizing your header grafic and is picking a color that fits to that.
B
34
S
9
G
3
Posts: 206
Reputation: 7,851

Post » Sun Feb 15, 2015 4:51 pm

Anytime Marco! :)

By the way, for all those facing issues with making phonegap game to work, I finally got mine working after realizing the issue lay outside construct 2, XDK or the plugin. got a hint from the other android forums.

Thing is, please ensure that your google auto-sync is turned on or if it is switched off, please sync your google+ account on the phone after making any changes to the google game settings online or in your code. this will ensure that your online changes are properly identified by the google+ settings on the phone.
B
3
Posts: 9
Reputation: 195

Post » Sun Feb 15, 2015 5:50 pm

MACPK wrote:I wouldn't recommend to use the scirra "Google Play Games" Plugin on mobile (crosswalk/phonegap exports). You are using the web-facing login that would work anywhere but this is not what users expect on mobile devices. Use the cranberry "game" plugin for that. It is really great and works for ios and android at the same time.

The cranberry plugin opens the in-app-login to the game service, It looks and feels more integrated. The most important part is that you can just open the "leaderboards" and "achievements" with one command. The scirra plugin just supports you with the data so you will have to build your own lists and views (complex). Both plugins should work on cordova exports though I think.

Here is a game of mine if you want to see the cranberry "game" plugin in action:
https://play.google.com/store/apps/deta ... zardattack


Hi, MACPK. Isn't the plugin from intel XDK "Google Play* Game Services" enough to create leaderboards?Or do I need to use it plus the cranberrys's plugin too?Are there any tutorial that explain step by step how to do it?Thanks!

edit: is it the phonegap game plugin? (plugins-cordova-related-c2-plugins-crosswalk-list_t109586?&hilit=cranberry)
B
56
S
21
G
3
Posts: 602
Reputation: 6,612

Post » Sun Feb 15, 2015 6:29 pm

@kossglobal No, so far as I know you can't use that. The Scirra plugin is a weblogin based solution. You don't need to ad anything for that but it is highly mobil eunfriendly.

1. You need to add the cranberry game plugin to construct2
2. Then add the plugin to your project and configure login etc.
3. Export to intel XDK
4. Ad your Google ID to intelxdk.config.additions
5. Enable the "Phonegap +Admob* Plugin" in Cordova settings of your project in IntelXDK (it is supposed to be activated right away but that is not working for me so I always enable that)
6. Set export option to "not signed"
7. Export via Android/Crosswalk
8. Sign your APK with your Key
9. Run app on a device
10. Get a cocktail to celebrate awesomeness

Idk, some people are working on a tutorial. Should be there soon but acutally know it is there above ;-) I thought about creating a tutorial but everything changes so fast. So with the next IntelXDK update it might look different.

VERY IMPROTANT:
- Don't use any CocoonJS with this. I mean the C2 Plugin. Acually the Cranberry Plugin might work on a CCJS export but if you don't know what I am talking right now I recommend to not touch it. Don't open that grave^^
- Don't use the Scirra build in Google Game Service - Plugin. It is well done but not made for mobile. You can just pull data with that and have to desgin your own leaderboard views. The cranberry plugin opens the standard iOS and Android view. Nevertheless the cranberry plugin doesn't work in a browser so that's why there is still some need for the Scirra version. A merge would be nice. If the scirra plugin behaved like the cranberry plugin on mobile, that would be great but the focus is on C3 I guess.
B
34
S
9
G
3
Posts: 206
Reputation: 7,851

Post » Sun Feb 15, 2015 6:59 pm

MACPK wrote:@kossglobal No, so far as I know you can't use that. The Scirra plugin is a weblogin based solution. You don't need to ad anything for that but it is highly mobil eunfriendly.

1. You need to add the cranberry game plugin to construct2
2. Then add the plugin to your project and configure login etc.
3. Export to intel XDK
4. Ad your Google ID to intelxdk.config.additions
5. Enable the "Phonegap +Admob* Plugin" in Cordova settings of your project in IntelXDK (it is supposed to be activated right away but that is not working for me so I always enable that)
6. Set export option to "not signed"
7. Export via Android/Crosswalk
8. Sign your APK with your Key
9. Run app on a device
10. Get a cocktail to celebrate awesomeness

Idk, some people are working on a tutorial. Should be there soon but acutally know it is there above ;-) I thought about creating a tutorial but everything changes so fast. So with the next IntelXDK update it might look different.

VERY IMPROTANT:
- Don't use any CocoonJS with this. I mean the C2 Plugin. Acually the Cranberry Plugin might work on a CCJS export but if you don't know what I am talking right now I recommend to not touch it. Don't open that grave^^
- Don't use the Scirra build in Google Game Service - Plugin. It is well done but not made for mobile. You can just pull data with that and have to desgin your own leaderboard views. The cranberry plugin opens the standard iOS and Android view. Nevertheless the cranberry plugin doesn't work in a browser so that's why there is still some need for the Scirra version. A merge would be nice. If the scirra plugin behaved like the cranberry plugin on mobile, that would be great but the focus is on C3 I guess.


1. Could you provide the link?
4. Google ID is what I will get when I publish my app?
5. I'm willing to use the oficial admob plugin. this will affect it?
8. Could you visit my topic about this? (viewtopic.php?f=147&t=125055&p=887229#p887229)

I'm almost ready to publish my first game. I just need these questions to be clear in my mind. I'll first publish the game without the leaderboard and add it later, when I set everything about this correctly.

Thank you for your time!
B
56
S
21
G
3
Posts: 602
Reputation: 6,612

Next

Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, jorgmaquoi, Kermad, yiuyiu6666 and 10 guests