Game Development Community

iOS 6 Game Center Authentication (Solved)

by redbarndan · in iTorque 2D · 03/01/2013 (10:41 am) · 2 replies

Has anyone managed to successfully implement the changes required now that authenticateWithCompletionHandler is deprecated?

I can't get the authentication view to display using the new setAuthenticateHandler way.

Thanks

Dan

About the author

Red Barn Games is a small independent studio looking to make a variety of great games using Torque engine technology.


#1
03/01/2013 (2:30 pm)
Just to add to this, the code in the authenticationHandler block is never getting executed, it just skips right to the end of the authenticateLocalUser function.

Could this be a sandbox testing issue?
#2
03/01/2013 (5:13 pm)
Looks like something got screwed up with my sandbox testing accounts. After spending all day bashing my head against this, reading everything and anything I could about it, I finally did what I should have done about 12 hours ago, I closed all apps and rebooted the device. Presto, now it works.

What's strange is that going through this exercise I learned that the way users were authenticated had been deprecated in iOS 6. Why then does the old method (authenticateWithCompletionHandler) still work even though I'm testing this on an iPad 3 running iOS6.