How do I set online leaderboard for android?

Get help using Construct 2

Post » Fri Apr 14, 2017 8:34 am

Hello,

I searched forum for my problem but many threads are unanswered or outdated. I hope I am not duplicating thread.

I want to implement online leaderboard for my android game. The best option would be to implement google services but I dont know how to implement it when building with cordova CLI (did not find manual). I know there is a way when building by cocoon.io but its not solution for me as the builds from cocoon in my is twice as large than from cordova I dont know why.

If google play service is not an option my question is how do I implement this solution : Online High Score Table (AJAX, PHP, MySQL) https://www.scirra.com/tutorials/346/on ... sql?page=9 and show the results in mobile game. I tried to test on example website iframe plugin from pode but it only shows its in construct2 preview mode. After building android apk iframe is not visible at all.

Is there any up to date way to implement online leaderboard for android?
B
5
S
2
Posts: 11
Reputation: 495

Post » Sat Apr 15, 2017 8:17 pm

Well, I did not get any help in this topic but I managed to solve it by myself. If anyone is interested of implementing google play services using cordova cli let me know. You can test it here https://play.google.com/store/apps/deta ... ndtreasure
B
5
S
2
Posts: 11
Reputation: 495

Post » Wed May 10, 2017 8:27 pm

Hey, can you tell me how you have done it? I am stuck :(
B
5
Posts: 2
Reputation: 231

Post » Sun May 14, 2017 7:19 am

Hello @warkama,

I used Cordova CLI to build my apk so keep in mind that I can only help you if you using the same way of building your app.

First of all You need to get https://www.scirra.com/store/construct2 ... ugins-1662 so its additional cost but for me it was worth the money.

For the leaderboard you need to install in construct 05_Cordova_extension_gamecranberrygame_CordovaGame_1.0.73.c2addon then follow the instruction from this https://github.com/cranberrygame/cordova-plugin-game i did it some time ago and I dont remember exactly if following the instruction was enough so it would be usefull if you will tell me at what point did you stuck with this. If you will have a problem with the solution i gave you, let me know - we will try to solve it.
B
5
S
2
Posts: 11
Reputation: 495

Post » Mon May 15, 2017 8:00 pm

I am using Intel XDK, but tried PhoneGap not a long time ago, I guess I will have to try Cordova CLI ;) I have the plugin pack so maybe the instruction guide will help. Thanks!
P.S. I will make a tutorial on YouTube for others if it works out.
B
5
Posts: 2
Reputation: 231


Return to How do I....?

Who is online

Users browsing this forum: gskunk, newt, Yahoo [Bot] and 43 guests