Renato - thanks for that.
However looking at the function in http://docs.coronalabs.com/plugin/gameNetwork-google/request.html.
It states what is returned is isError.
I tried the following code and both doesn’t get called
[lua]
function GameNetwork:LoginCallback( event )
print(“In LoginCallback 1”)
if (event.isError) then
native.showAlert( “Fail”, “User is not logged into Game Center”, { “OK” } )
else
native.showAlert( “Success!”, “User has logged into Game Center”, { “OK” } )
end
print(“In LoginCallback 2”)
end
[/lua]
also
[lua]function GameNetwork:LoginCallback( event )
print(“In LoginCallback 1”)
if (event.data.isError) then
native.showAlert( “Fail”, “User is not logged into Game Center”, { “OK” } )
else
native.showAlert( “Success!”, “User has logged into Game Center”, { “OK” } )
end
print(“In LoginCallback 2”)
end[/lua]
When I debug with adb. I never erach the second print statement
any ideas?