Hey all –
So I have an iOS app that’s been running just fine for the last several weeks. Strangely though, in the last couple of days I get this console error when running it on a local iPhone:
[Device] WARNING: The 'gameNetwork' library is not available on this platform.
Has anyone seen this before? Seems like the ‘gameNetwork’ library should be on iPhone.
Thanks for any help –
-Lucas
build.settings:
plugins = { ["CoronaProvider.gameNetwork.apple"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true } }, ['plugin.texttospeech'] = { publisherId = 'com.spiralcodestudio', }, },
main.lua:
-- set up GameCenter local gameNetwork = require("gameNetwork") local function gameNetworkCallback( event ) utility.dprint( "-- Function Start: gameNetworkCallback" ) if (event.type == "showSignIn") then -- this is an opportunity to pause your game elseif (event.data) then core.temp.foundGameCenter = true end utility.dprint( "-- Function End: gameNetworkCallback" ) end local function gameNetworkCallback( event ) if ( event.type == "loadAchievements" ) then print("loadAchievements: " .. event.data[1].identifier) end end gameNetwork.request( "loadAchievements", { listener=gameNetworkCallback } )