Type Library Revision Release 2024.3703 Keywords Google Play Games Services, game network, gpgs Platforms Android
The Google Play Games Services plugin enables access to
This documentation outlines the legacy Google Play Games Services plugin, primarily intended for Android games still using multiplayer. For new Android games, you should use Google Play Games Services v2 plugin.
To use this plugin, you must implement Google app licensing as outlined here and sign the .apk
with a private key as outlined here.
Formerly, this plugin was also compatible with iOS, but Google no longer supports integration with iOS. If you previously implemented this service on iOS, you should migrate that implementation to another service.
If you encounter
local gpgs = require( "plugin.gpgs" )
These core functions manage connection to Google’s servers, authentication, and other tasks.
Specific functionality aspects of this plugin are divided into nodes for better organization:
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 = { ["plugin.gpgs"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, }, }
Additionally, you must specify the android
table of build.settings
as the googlePlayGamesAppId
key:
settings = { android = { googlePlayGamesAppId = "YOUR_APPLICATION_ID", }, }