类型 库 修订版 发行版 2024.3703 关键词 google,google play 游戏服务,成就,排行榜,多人游戏 平台 安卓 示例 https://github.com/coronalabs/com.coronalabs-plugin.gpgs.v2
Google Play 游戏服务插件允许访问
GPGSv2 不再支持多人游戏,自 2020 年 3 月 31 日起,Google 已停止支持多人游戏。请参阅旧版插件以访问多人游戏 API。
以前,此插件还兼容 iOS,但 Google 不再支持与 iOS 的集成。如果你之前在 iOS 上实施了此服务,则应将该实施迁移到另一项服务。
如果你遇到
local gpgs = require( "plugin.gpgs.v2" )
要使用此插件,请在build.settings
的plugins
表中添加条目。添加后,构建服务器将在构建阶段集成该插件。
settings = { plugins = { ["plugin.gpgs.v2"] = { publisherId = "com.coronalabs", } } }
此外,你还必须指定build.settings
的android
表中,作为googlePlayGamesAppId
键
settings = { android = { googlePlayGamesAppId = "YOUR_APPLICATION_ID", }, }
插件分为 API 节点,以便更好地组织。
这是插件的基本 API 节点。它管理与 Google 服务器的连接、身份验证和常规 SDK 任务。