Page 1 of 1

iOS 6.0 Bug

Posted: Oct 07, 2012
by petern
I've discovered an interesting bug that I have verified between my iPod Touch (iOS 6.0) and my Mac MBP OS Mountain Lion (I have registered versions for both).

When I task out of the iPod (perhaps to take a FaceTime call) my MBP Cribbage tells me the connection has dropped. When I come back into Cribbage on my iPod, the game is totally jammed up....many buttons are disabled/won't function.

Perhaps Apple has changed the way the event works. A good discussion is on Stack Overflow. Since Posting a link is rude, allow me to paraphrase:

From "HighlyCaffinated":
-When the user presses the home button, your application delegate's applicationWillResignActive is called which disables touch
-events to the application. Then applicationDidEnterBackground is called, which, per the Apple docs:
-Your delegate’s applicationDidEnterBackground: method has approximately 5 seconds to finish any tasks and return. In practice,
-this method should return as quickly as possible. If the method does not return before time runs out,
-your application is killed and purged from memory

Seems like the "applicationDidEnterBackground: method" should signal the server/players that the iOS is exiting and save the game out, with a similar exit message locally. I am presuming this worked under iOS 5, because this is the first time I have run into this. My dad and I have been playing via network with his iPad for months, so when he had this problem I was a bit stumped, but was easily able to verify it locally. Viva la difference, a recent upgrade from 5.1.1 to 6.0.

Good luck with the network re-work, I understand that is a priority. For now my advise to everyone is "Don't use the Home Button while playing a network game."

-petern

Re: iOS 6.0 Bug

Posted: Oct 18, 2012
by petern
Bump!

Just happened again. Also saw in the network area a "?" entry, so how about a reply? Can someone else confirm this?

Re: iOS 6.0 Bug

Posted: Oct 19, 2012
by Aidan
I didn't get a chance to look into the details of this yet but appreciate the informative post and will as as soon as I can.