Google Play Game Services

Type Library
Revision 2014.2419
Keywords gameNetwork, Google Play Game Services
Availability Starter, Basic, Pro, Enterprise
Platforms Android

Overview

Google Play Game Services makes your games more social with capabilities for achievements, leaderboards, and other popular features using the Google Play game services SDK. Let players sign in using their Google+ identities and share their gaming experience with friends.

Important

Using the gameNetwork library will enable Corona Analytics and override any setting in config.lua.

Functions

Project Settings

To use this plugin, add an entry into the plugins table of build.settings. When added, the build server will integrate the plugin during the build phase.

settings =
{
    plugins =
    {
        ["CoronaProvider.gameNetwork.google"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { android=true },
        },
    },
}

In addition, you must specify the Google Play Games App ID within the android table of build.settings:

settings =
{
    android =
    {
        googlePlayGamesAppId = "123456789012",
    },
}

Sample Code

Support