Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / iOS 6 BUG for orientations, READ before publish app!!

Author
Message
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 2nd Oct 2012 03:20 Edited at: 2nd Oct 2012 03:36
In the new iOS 6 there is an Apple bug on orientations.
They rejected one of my apps and i started to study the crash...
Until Apple release a bug fix you need this or your App will be rejected!!

I discovered searching trough some forums that we can fix it in this way:

Add this code in the UntitledViewController.m near the shouldAutorotate...



Someone at Apple decided (IMHO as an error) to sign up the game center only in portrait mode.
So if you are going to use in landscape only put this fix.

If you wanna see it in action, run your project with iOS 5.1 and iOS 6 simulator, with AppGameKit 1076.


Edit2 : i done much other tests.
Finally if you do in this way, using the last template Ancient Lady suggested, all works ok for AppGameKit 1076.
So be careful to add the new fix!!

Long life to Steve!
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 2nd Oct 2012 12:28
and if you app is in Portratit all is ok on ios6?
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 2nd Oct 2012 16:03
Yes if you use only portrait is ok, cause the GameCenter try to show always in portrait mode.
The problem is that the reviewers don't know of this bug and explain themselves as it depend by another thing and send you out of brain.

Anyway for all the new Apps you submit add the fix so you be sure all will be ok.
Ah... don't forget to try it on the iOS 5.1 and iOS 6.0, and try your app on the simulator and device, as they fire different errors on the orientation (or sometimes work but in a different way).

Long life to Steve!
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 2nd Oct 2012 16:44
xGEKKOx, are you working in Tier 1 or Tier 2 and seeing this bug?

I am working in Tier 2 (with the templates I posted here) and have no problem with a landscape only app. It runs fine in all simulators (iOS 5.1, 6.0, iPad, iPhone) and on my iOS 6.0 iPad and iOS 5.1 iPod Touch.

My app flips immediately to Landscape and then runs fine.

Cheers,
Ancient Lady
AGK Community Tester
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 2nd Oct 2012 19:45 Edited at: 2nd Oct 2012 19:46
I work only Tier 2 in Xcode 4.5
Be careful Lady, all developers have this bug, and it come out only some times and only when using game center.
If you use a different view controller for all the things you do maybe it will work anyway.
But better if you iclude the fix or you will lose 7 days more for a bug due to Apple and not to you.

You can recreate the bug using landscapes on ios 6 and start the game center with no login.
So exit game center and after run the app.

Edit : if you use more than landscape, change the mask in my fix with all or your preferred.

Long life to Steve!
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 2nd Oct 2012 19:48
Well, since I don't use the game center, it isn't a worry for me.

But I will keep this in mind if I do add the game center later.

Thank you for the good information.

Is Apple aware that they've created a bug?

Cheers,
Ancient Lady
AGK Community Tester
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 2nd Oct 2012 21:00
I read that they were been informed about this.
I wish they don't add another strange idea like this in next ios updates!

Long life to Steve!
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 2nd Oct 2012 22:02 Edited at: 2nd Oct 2012 22:02
xGEKKOx any useful resources or hints of the best way to integrate gamecenter with agk?

there were a couple of guides, but i think they were too complicated and maybe it could be done more elegantly and simpler
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 3rd Oct 2012 01:00 Edited at: 3rd Oct 2012 01:56
Yes i have a personal mini integration, different from the one i posted in the past.
Directly to add in the UntitledViewController.
I open a new post and copy it inside.

Edit : Done the GameCenter post in iOS forum.

Long life to Steve!
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 3rd Oct 2012 09:21
I will check it out Gekko and give it a try!
You seem to know your facts well on Objective C

thanks for your great support on these forums

Login to post a reply

Server time is: 2024-05-04 12:49:53
Your offset time is: 2024-05-04 12:49:53