From The Blog: New Google Play Games Services plugin available!

This is awesome, no other 2D engine has this kind of service support for free, especially after the iOS version is released! Big thank you to whomever wrote and signed off on this plugin!

Technical questions:

Which Google Play Game Services API was used the create this plugin, C++ or Java?

Is the source open like the other Corona plugins?

Thank you!
Android plugin uses Java API.
No info on whether or not it’s going to be opensourced yet.

Good job, Lerg and thanks for the info!

Nice to see this progress. Is there anything I should change the code besides changing :

local gameNetwork = require( "gameNetwork" )

to 

local gpgs = require( "plugin.gpgs" )

or can I keep as it is when I’m building new apps ?

thanks.

I have not tried port an app from old to new but I believe

local gpgs = require( “plugin.gpgs” )

should be

local gameNetwork = require( “plugin.gpgs” )

If you plan on using the gameNetwork.show instead gpgs.show.

.show is off couse the old way of showing leaderboard.

There are two options.

local gpgs = require( "plugin.gpgs" ) local gameNetwork = require( "gameNetwork" ) -- OR -- local gameNetwork = require( "plugin.gpgs" )

When you require “plugin.gpgs”, “gameNetwork” becomes an alias to “plugin.gpgs”.
Also don’t forget to remove the old plugin from build.settings.

@lerg thanks for clarification on.

Thank you thank you! Perfect timing too!  :slight_smile:

Any news when the IOS integration for gpgs will be available?

I am pretty sure iOS support was added like 5 hours ago. I think multiplayer is the only thing (also live streaming(which won’t work on iOS) and push) not working.

yep stated in docs

https://docs.coronalabs.com/plugin/gpgs/index.html

I hope the documents get properly updated by corona. Very often the same document page shows different code methods or implementations. So which is correct, and which requires additional info if you want to use gigs for both android and IOS? Is below to be used…

[“plugin.gpgs”] =

{
publisherId = “com.coronalabs”,
supportedPlatforms = { android=true }
}

…or

plugins = {

[“plugin.gpgs”] = {publisherId = “com.coronalabs”}
}

…and what is the code after the id, is it always the same or is that code specific for that particular id?

googlePlayGamesAppId = “760035641580-8eho8p557gtaaa7alouh5a2qlhtruomq.apps.googleusercontent.com”,

CFBundleURLTypes = {
{CFBundleURLSchemes = {“com.googleusercontent.apps.760035641580-8eho8p557gtaaa7alouh5a2qlhtruomq”}},
{CFBundleURLSchemes = {“com.coronalabs.gpgs”}}
}

jacques1, documentation is a work in progress.
Now you don’t need to supply supportedPlatforms field.

Your values for googlePlayGamesAppId and URLs will be different. These values are just for reference how it looks like.

Thanks Lerg,

is there any sample app for reference since there is no documention on how to properly init and login for both android and IOS. Or can IOS devices use the same into and login code that android currently uses? Reason for asking is right now I have one function for android and one function for IOS (which previously init and logged into game center - can i remove this code for IOS?). 

Lastly, do IOS users need to install google play app on their devices if we simply use the gpgs api to grab data for our own generated leaderboard displays in game and not require it for showing the generic gpgs leaderboard displays.

The login code is the same on Android and iOS. This plugin is not GameCenter plugin, if you want to keep GameCenter in your app - you should leave the login code for GameCenter. If you just want to use Google Play Games Services only, then remove your old code for GameCenter.

There is no Google Play app for iOS, authentication is happening via Safari.

Yup that much I gathered, but any time frame on when sample documentation will be available so we can actually see how to implement gpgs  (other than the gpgs init code), instead of merely seeing a list of all the functions, events,and type names which have no explanation on how to use them?

jacques1, samples and documentation are being worked on. Since this plugin tries to reflect Google’s API, you can actually use their documentation to get more information on one thing or another.

Thanks for your time Lerg, will try figure it out.

This is awesome, thank you to all the Corona Staff for this wonderful plugin.