I just installed a game of mine that uses GPGS on an Android tablet and it logged in to GPGS without issue.
I’m using 2830.
Here is the relevant portions of my build.settings:
android = { googlePlayGamesAppId = "123456789012345", largeHeap = true, androidPermissions = { "android.permission.VIBRATE", "android.permission.INTERNET" }, }, plugins = { ["CoronaProvider.gameNetwork.google"] = { -- required publisherId = "com.coronalabs", supportedPlatforms = { android=true }, }, ["CoronaProvider.gameNetwork.apple"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true, iphone = true }, }, },
and the relevant portions of my main.lua:
local function gpInitCallback(event) print("gp call back") if event.isError then app.isConnected = false else print("Need to login") gameNetwork.request( "login", { userInitiated=true, listener=gcLoginCallback }) end print("done with gp callback") end local function authorize() print("\*\*\* connecting to game center.") if device.isGoogle then gameNetwork.init("google", gpInitCallback) elseif device.is\_iOS then gameNetwork.init("gamecenter", gcLoginCallback) end end
Now my app is Live in the store, has been for a long time. I’ve not made any changes to any of this other than prettying up the spacing in my build.settings before posting it here.
Rob