native alert orientation issue on iOS devices

Sorry for the cross post, but this is such a show-stopping bug for me that I think it deserves extra attention… can this be bumped up in the priority queue for iOS fixes? It’s a bug that was reported over a year ago, and is still not fixed :frowning:

http://developer.anscamobile.com/forum/2010/05/03/change-orientation-all-native-widgets-alert-keyboard-web-popup#comment-72449

The problem is that native alerts appear in portait mode on iOS devices, regardless of the orientation of the device. [import]uid: 94684 topic_id: 18825 reply_id: 318825[/import]

Hey there,

I actually spoke to someone recently regarding native alerts and couldn’t reproduce the problem. (Although I’m not certain on web popups, I would need to look into that.)

Is the issue you’re talking about simply related to native alerts? Please let me know as I’ll upload something for you to test if that’s OK.

Peach :slight_smile: [import]uid: 52491 topic_id: 18825 reply_id: 72599[/import]

i am too facing this problem …did this got rectified.Please help me … [import]uid: 82446 topic_id: 18825 reply_id: 93687[/import]

Rahul, please submit a bug report with test case if you are sure this is a bug - as I said last we tested couldn’t reproduce. [import]uid: 52491 topic_id: 18825 reply_id: 93700[/import]

Guys, respectfully, I wouldn’t assume this is a bug. The thing is that Corona gives you fine-grained control over how things are oriented, separating native and content elements into their own separate thing.

I’ve posted in a similar thread, but I’d recommend investigating this doc page closely and experimenting before concluding its a bug:
http://developer.anscamobile.com/content/configuring-projects#Orientation_Support_iOS
If you post the orientation table from your build.settings, we might be able to help you get it sorted out. Otherwise, it’s hard to say what the problem might be!

Here’s my settings for iOS in an app that rotates freely between both landscape orientations. It’s working for me with the orientation of native elements too (keyboard, notifications, banners, etc).

orientation = { default ="landscapeLeft", content = { "landscapeLeft", "landscapeRight" }, supported = { "landscapeLeft", "landscapeRight" } },The thing to note is the “content” table. That controls the allowed orientations of native UI elements.

I use this in conjunction with a modified version of this:
http://developer.anscamobile.com/code/proper-orientation-rotation-animation [import]uid: 87138 topic_id: 18825 reply_id: 94392[/import]

That’s a very thorough and concise explanation Revaerie, thank you :slight_smile:

This issue has come up in the fast and as I commented earlier it isn’t something we can reproduce.

So, please guys, take Revaerie’s advice - if it’s not a user error and is indeed a bug am happy to take a look.

Peach :slight_smile: [import]uid: 52491 topic_id: 18825 reply_id: 94395[/import]