I recently updated my iPhone 5 to iOS 7 and started testing our game against it using the new Daily Build (1215). I’ve noticed that on the device the facebook.login() method will timeout about 50% of the time it is called. I can see in the Xcode console that CoreAnimation is reporting a timeout, I’ve pasted that bit below.
Sep 25 14:17:11 Brandons-iPhone BloxBlast[288] <Warning>: logging user into Facebook
Sep 25 14:17:21 Brandons-iPhone backboardd[28] <Warning>: CoreAnimation: timed out fence 2dea7
Sep 25 14:17:21 Brandons-iPhone lsd[76] <Warning>: LaunchServices: application launch failed - received error code 11
Sep 25 14:17:32 Brandons-iPhone lsd[76] <Warning>: LaunchServices: application launch failed - received error code 11
Sep 25 14:17:32 Brandons-iPhone BloxBlast[288] <Warning>: CoreAnimation: failed to receive fence reply: 10004003
( The CoreAnimation timeout appears after about 30 seconds of sitting at the default image for the game)
After this part of the log the app is suspended and either Safari or the Facebook App take over ( depending on if the Facebook App is installed ) and the user is asked to authorize the app again and is than taken back to my game. When they return the in-app facebook popup is present asking them to log in again and if they fill out that form it is replaced by a blank in-app popup.
When the login works correctly the user never sees the Facebook dialog because they have already authorized the access and the app can just log them in and be done with it.
Is anyone else seeing a problem like this when running on the device? In my game I’m only seeing the problem when the app launches from a cold boot, but that is probably specific to my implementation.
Is there a way to trap a timeout on Facebook login and attempt to try it again later?
Thanks for your help.
- Brandon