iOS 6 Orientation Crash

– also posted as separate thread on daily builds
Hi,
Version 2012.928 (2012.10.4)

Two new issues with game center on IOS 6: shows up on Xcode simulator and device (iPhone4)

  1. Lauch app, press home button during game center activity; relaunch app. App crashes. Launch app for second time, no issue. I’m using all the recommended fixes for the game center orientation Apple bug. Has anyone else experienced this ? I have UIApplicationExitsOnSuspend = true

  2. To get around the annoying game center log-in box the first time you launch an app, I am only calling gameNetwork.init() when the user touches a “game center” button from within the game.
    I then call gameNetwork.show() from within the initCallback() function
    The issue is that if there is no internet connection, initCallback() is not called at all. So the user will press the “game center” button and get nothing. What is needed is a callback to indicate that login failed. Or even better a function to report whether the user is logged in (without invoking the log-in screen!)

CoronaLabs, any advice or ideas? Hopefully these can be incorporated into the use-cases you are looking at now.

Anthony [import]uid: 87194 topic_id: 31056 reply_id: 126728[/import]

Yikes, if this is the case I might stick to the non-rotating orientation for stability [import]uid: 144908 topic_id: 31056 reply_id: 126940[/import]

Hi all, I’ve posted the backstory on the fix in 930: http://www.coronalabs.com/blog/2012/10/09/ios-6-game-center-and-landscape-orientation/

Also, we also have a workaround coming for the photo picker issues on iPad. [import]uid: 26 topic_id: 31056 reply_id: 126946[/import]

Hey Walter - I posted this on the blog article, but think you might see it more prominently here.

The workaround isn’t working for me. My app is designed to only support one landscape orientation (“landscapeLeft”), however the new fix is auto-rotating despite my build.settings only registering for this one orientation.

Curiously the app doesn’t auto-rotate in the Corona Simulaltor!?!

FYI here’s my build.settings:

[code]
settings = {
orientation = {
default = “landscapeLeft”,
supported = {“landscapeLeft”},
},

iphone = {
components = {},
plist = {
CoronaUseIOS6LandscapeOnlyWorkaround = true,
[/code] [import]uid: 33275 topic_id: 31056 reply_id: 127008[/import]

Thanks Walter et al at Coronalabs for hammering on this.

The fix posted in build 931 seems to have done the trick. No crashing in my app in Photo Picker, iOS 6, iPad, both Landscape Orientations working. Whew! Just in time for Apple to “fix” it and break something else :wink:
[import]uid: 9422 topic_id: 31056 reply_id: 127046[/import]

Hello,

I’m looking to release an update to one of my apps. My question is: if/when Apple fixes the Game Center crash with an iOS update, will my app that includes the fix above start crashing?

Thank you. [import]uid: 47722 topic_id: 31056 reply_id: 127060[/import]

Here is an update …

I just tried 2012.930 build on both iPad 3 and iPhone 4 running iOS 6.

Our landscape only app has no game center integration, we have native text fields and photo picker functionalities.

Photo picker

  • Works fine on iPhone 4 (native text fields not rotating to portrait now)
  • Crash on iPad 3 (photo picker doesn’t work)

Based on this, I think the fix is required on iPad 3 as well.

Or, is there any iPad specific settings that needs to be applied?

Thanks a lot for working on this issue. [import]uid: 48484 topic_id: 31056 reply_id: 126897[/import]

I tried the new fix incorporated in daily build 2012.930 and can confirm opening the photo picker on an iPad 2 will crash. It does not crash on an iPhone 4 (and the photo picker opens in portrait orientation as expected). [import]uid: 9422 topic_id: 31056 reply_id: 126908[/import]

Yikes, if this is the case I might stick to the non-rotating orientation for stability [import]uid: 144908 topic_id: 31056 reply_id: 126940[/import]

Hi all, I’ve posted the backstory on the fix in 930: http://www.coronalabs.com/blog/2012/10/09/ios-6-game-center-and-landscape-orientation/

Also, we also have a workaround coming for the photo picker issues on iPad. [import]uid: 26 topic_id: 31056 reply_id: 126946[/import]

Hey Walter - I posted this on the blog article, but think you might see it more prominently here.

The workaround isn’t working for me. My app is designed to only support one landscape orientation (“landscapeLeft”), however the new fix is auto-rotating despite my build.settings only registering for this one orientation.

Curiously the app doesn’t auto-rotate in the Corona Simulaltor!?!

FYI here’s my build.settings:

[code]
settings = {
orientation = {
default = “landscapeLeft”,
supported = {“landscapeLeft”},
},

iphone = {
components = {},
plist = {
CoronaUseIOS6LandscapeOnlyWorkaround = true,
[/code] [import]uid: 33275 topic_id: 31056 reply_id: 127008[/import]

Thanks Walter et al at Coronalabs for hammering on this.

The fix posted in build 931 seems to have done the trick. No crashing in my app in Photo Picker, iOS 6, iPad, both Landscape Orientations working. Whew! Just in time for Apple to “fix” it and break something else :wink:
[import]uid: 9422 topic_id: 31056 reply_id: 127046[/import]

Hello,

I’m looking to release an update to one of my apps. My question is: if/when Apple fixes the Game Center crash with an iOS update, will my app that includes the fix above start crashing?

Thank you. [import]uid: 47722 topic_id: 31056 reply_id: 127060[/import]

Anyone have updates on this issue from iOS 6.0.1 patch released yesterday? [import]uid: 48484 topic_id: 31056 reply_id: 129756[/import]

This appears (at least in the release notes) to be addressed in the iOS 6.1 beta.

[import]uid: 19626 topic_id: 31056 reply_id: 129767[/import]

Anyone have updates on this issue from iOS 6.0.1 patch released yesterday? [import]uid: 48484 topic_id: 31056 reply_id: 129756[/import]

This appears (at least in the release notes) to be addressed in the iOS 6.1 beta.

[import]uid: 19626 topic_id: 31056 reply_id: 129767[/import]