Cancelling the GK auth process breaks auth completion handlers

Originator:khakionion
Number:rdar://11644144 Date Originated:6/11/2012
Status:Closed Resolved:Not To Be Fixed
Product:iOS GameKit Product Version:5.1 SDK
Classification:Serious Bug Reproducible:Always
 
11-Jun-2012 11:41 PM Michael Herring:
Summary:
If the GameKit authentication prompt is cancelled, future attempts to authenticate will not have their completion handlers called.

Steps to Reproduce:
1. Download the GKTapper sample code app from developer.apple.com
2. Set a breakpoint at line 145 in GameCenterManager.m.
3. Debug on an iOS 5.1 device (or the Simulator).
4. Tap "Cancel" at the authentication prompt.
5. Note that the breakpoint is hit, then continue execution.
6. Tap "Try again."

Expected Results:
The completion handler should be called again after authenticateWithCompletionHandler exits.

Actual Results:
authenticateWithCompletionHandler seems to execute, since it generates "enter/exit" log output. But, the Game Center authentication prompt never comes up, and the breakpoint set in step 2 above will never be hit a second time.

Regression:
My co-worker reports this is a 5.1-exclusive regression, but I have not confirmed that.

Notes:
This reproduces on the iOS 5.1 Simulator, as well.

17-Jul-2012 09:07PM Michael Herring
No, the issue only occurs on iOS 5.1.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!