Hello guys, In my app I’ve integrated both Game Center and Google Play Game Services.
Both seems to be working fine, except that when I complete an achievement, in iOS the Game Center Banner pops out, while on Android nothing happens.
Below the code I’m using for one of my Achievements:
if(tV.gameCenterMissioni==true)then if(tV.mission97isDone==true and tV.mission98isDone==true and tV.mission99isDone==true)then if ( system.getInfo( "platformName" ) == "iPhone OS" ) then local function requestCallback( event ) if ( event.type == "unlockAchievement" ) then end end gameNetwork.request( "unlockAchievement", { achievement = { identifier = "achievementiOSIdentifier...", percentComplete = 100, showsCompletionBanner = true }, listener = requestCallback } ) elseif ( system.getInfo( "platformName" ) == "Android" ) then local function requestCallback( event ) if ( event.type == "unlockAchievement" ) then end end gameNetwork.request( "unlockAchievement", { achievement = { identifier = "achievementAndroidIdentifier...", percentComplete = 100, showsCompletionBanner = true }, listener = requestCallback } ) end end tV.gameCenterMissioni = false loadsave.saveTable(tV, "myTable.json", system.DocumentsDirectory) end
Google Play services are enabled on my Android device, and I’m sure that the connection between the phone and the Google Play Game Service is working since I print (and I get) a “Success” native alert on gameNetwork.init()
Thank you.