native.showAlert

Hi Tom.

I tested here and that error only happens when the app is set to landscape mode.

I used to the following code to test:

[lua]

native.showAlert(“App Name”, “Alert Message”, { “Buttom1”, “Button2”, “Button3”} )

[/lua]

You can see the screenshot of that code above here: showalert.png

I am using Corona 2013.1033.

Renato [import]uid: 181011 topic_id: 24295 reply_id: 145006[/import]

Nobody mentioned landscape mode before so that was never tested.

I just modified my code so it’s landscape only and it displays three button alert box fine on iPhone5 running iOS 6.0.2 with build 1041.

We are no longer accepting bug reports that do not include a full project files or are missing testing details. We spend too much time working with main.lua files that don’t show the problem.

Update: So I see it’s the alert message text that is missing from the landscape mode. Thanks for posting the image. I wish that was include in the bug report along with it being used in landscape mode.

Update2: I just looked at the code using a debugger and the “alert message” is being passed to UIAlertView but it’s not being displayed. Looking at the alert box on the device it seems that IOS may not think there is not enough room to display this optional text field. It works with two buttons or on iPad or iPhone in portrait mode because there is more room to display the alert box.

I also found this on stackoverflow that discussed a hack to change the size of the alert text, indicating this is an Apple issue. Apple’s guidelines state if you need to display more than two buttons, you should rework your UI and what you display to your user.
http://stackoverflow.com/questions/8868939/uialertview-not-showing-message-text [import]uid: 7559 topic_id: 24295 reply_id: 145010[/import]

Hi Tom,

With all due respect, I tried to make the bug report as clear as possible and did not realize it was a landscape-only bug. FogBugz gives me zero flexibility with my submitted tickets, so I can’t even edit it after the fact if I had realized that, and gives me no means of communicating with support staff if I find out something after the fact. Heck, I can’t even find my submitted tickets unless I click on one of the random number from the Daily Builds Summary page, since even clicking the actual ticket number from the list on bugs.anscamobile.com doesn’t take me to the issue. Further, I can’t close out issues of my own that I know have been fixed by later daily builds like 20527. But I know that’s probably all FogBugz and not Corona.

In addition, the original text of the report stated: “The native alert message text does not display … when using an alert with 3 buttons. The title and buttons do show up.” I would have attached a picture if I could have to the ticket with an arrow pointing to it. I’ve made sure to attach full project directories on future bug reports.

Finally, this appears to be a duplicate of 12242 if you want to close that out, too. [import]uid: 135199 topic_id: 24295 reply_id: 145025[/import]

Here’s a workaround that should work right away. If you’re like me, the text is more important than the title, so just have a really long title: http://i.stack.imgur.com/N1Wcc.png [import]uid: 135199 topic_id: 24295 reply_id: 145026[/import]

My first impression when I saw the bug in my game was that it could be caused due to a message too long in the alert box, but then I make that simple 1-line code example with displaying only 1 word and it also did not work.

I agree that 3 buttons in a vertical mode leaves too little space for the message and the only way that I see that working would be if we could put 3 buttons in horizontal way (as the Android does). Changing the size of alert text does not make sense to me since we would have a “ugly” alert (I doubt that Apple would approve an app with that).

Anyway Tom, what is the final position about the case? Is it something that you guys will take a look or will be closing the cause because it appears to be Apple issue?

ps: mark.sandell, thanks for positing that link (bugs.anscamobile.com). Before posting here I tried to find about your case but I did not have success. I laso entered 1 by 1 in each daily build to see the bugs fixed… Corona guys, you could create a simple 1-webpage that 2 columns,in the left the daily build and in the right the bug fixed on that build. It would make our life much easier…

Thanks,

Renato [import]uid: 181011 topic_id: 24295 reply_id: 145027[/import]

Wow mark.sandell, great suggestion! Simple and effective.

In my case, the titles have really no use at all! (at least, until now!)

Thanks,

Renato [import]uid: 181011 topic_id: 24295 reply_id: 145028[/import]

Hi Mark, Hi Joshua.

Same problem here with native.showAlert with 3 buttons. The message of the showAlert does not appear in the iPhone 5 and 4S (but it appears in the ipad 3).

Any news on that issue?

Thanks,

Renato
[import]uid: 181011 topic_id: 24295 reply_id: 144814[/import]

I haven’t tested recently but really wish this would get fixed. I filed a super simple bug report, but haven’t heard anything from Corona since then, a little over 2 months ago. [import]uid: 135199 topic_id: 24295 reply_id: 144917[/import]

I tested your test code from case 19805 with our latest daily build, 1041, and it works fine on iPhone5 running iOS 6.0.2 as well as 6.2. It also runs fine on iPad Mini running 6.2. I also tested on the release build, 971, and it works fine too.

You only supplied a main.lua file so it’s missing the other files that could affect the test results.

For a three button alert box, the buttons are stacked vertically instead of horizontally. [import]uid: 7559 topic_id: 24295 reply_id: 145000[/import]

Hi Tom.

I tested here and that error only happens when the app is set to landscape mode.

I used to the following code to test:

[lua]

native.showAlert(“App Name”, “Alert Message”, { “Buttom1”, “Button2”, “Button3”} )

[/lua]

You can see the screenshot of that code above here: showalert.png

I am using Corona 2013.1033.

Renato [import]uid: 181011 topic_id: 24295 reply_id: 145006[/import]

Nobody mentioned landscape mode before so that was never tested.

I just modified my code so it’s landscape only and it displays three button alert box fine on iPhone5 running iOS 6.0.2 with build 1041.

We are no longer accepting bug reports that do not include a full project files or are missing testing details. We spend too much time working with main.lua files that don’t show the problem.

Update: So I see it’s the alert message text that is missing from the landscape mode. Thanks for posting the image. I wish that was include in the bug report along with it being used in landscape mode.

Update2: I just looked at the code using a debugger and the “alert message” is being passed to UIAlertView but it’s not being displayed. Looking at the alert box on the device it seems that IOS may not think there is not enough room to display this optional text field. It works with two buttons or on iPad or iPhone in portrait mode because there is more room to display the alert box.

I also found this on stackoverflow that discussed a hack to change the size of the alert text, indicating this is an Apple issue. Apple’s guidelines state if you need to display more than two buttons, you should rework your UI and what you display to your user.
http://stackoverflow.com/questions/8868939/uialertview-not-showing-message-text [import]uid: 7559 topic_id: 24295 reply_id: 145010[/import]

Hi Tom,

With all due respect, I tried to make the bug report as clear as possible and did not realize it was a landscape-only bug. FogBugz gives me zero flexibility with my submitted tickets, so I can’t even edit it after the fact if I had realized that, and gives me no means of communicating with support staff if I find out something after the fact. Heck, I can’t even find my submitted tickets unless I click on one of the random number from the Daily Builds Summary page, since even clicking the actual ticket number from the list on bugs.anscamobile.com doesn’t take me to the issue. Further, I can’t close out issues of my own that I know have been fixed by later daily builds like 20527. But I know that’s probably all FogBugz and not Corona.

In addition, the original text of the report stated: “The native alert message text does not display … when using an alert with 3 buttons. The title and buttons do show up.” I would have attached a picture if I could have to the ticket with an arrow pointing to it. I’ve made sure to attach full project directories on future bug reports.

Finally, this appears to be a duplicate of 12242 if you want to close that out, too. [import]uid: 135199 topic_id: 24295 reply_id: 145025[/import]

Here’s a workaround that should work right away. If you’re like me, the text is more important than the title, so just have a really long title: http://i.stack.imgur.com/N1Wcc.png [import]uid: 135199 topic_id: 24295 reply_id: 145026[/import]

My first impression when I saw the bug in my game was that it could be caused due to a message too long in the alert box, but then I make that simple 1-line code example with displaying only 1 word and it also did not work.

I agree that 3 buttons in a vertical mode leaves too little space for the message and the only way that I see that working would be if we could put 3 buttons in horizontal way (as the Android does). Changing the size of alert text does not make sense to me since we would have a “ugly” alert (I doubt that Apple would approve an app with that).

Anyway Tom, what is the final position about the case? Is it something that you guys will take a look or will be closing the cause because it appears to be Apple issue?

ps: mark.sandell, thanks for positing that link (bugs.anscamobile.com). Before posting here I tried to find about your case but I did not have success. I laso entered 1 by 1 in each daily build to see the bugs fixed… Corona guys, you could create a simple 1-webpage that 2 columns,in the left the daily build and in the right the bug fixed on that build. It would make our life much easier…

Thanks,

Renato [import]uid: 181011 topic_id: 24295 reply_id: 145027[/import]

Wow mark.sandell, great suggestion! Simple and effective.

In my case, the titles have really no use at all! (at least, until now!)

Thanks,

Renato [import]uid: 181011 topic_id: 24295 reply_id: 145028[/import]

Hi Mark, Hi Joshua.

Same problem here with native.showAlert with 3 buttons. The message of the showAlert does not appear in the iPhone 5 and 4S (but it appears in the ipad 3).

Any news on that issue?

Thanks,

Renato
[import]uid: 181011 topic_id: 24295 reply_id: 144814[/import]

I haven’t tested recently but really wish this would get fixed. I filed a super simple bug report, but haven’t heard anything from Corona since then, a little over 2 months ago. [import]uid: 135199 topic_id: 24295 reply_id: 144917[/import]

I tested your test code from case 19805 with our latest daily build, 1041, and it works fine on iPhone5 running iOS 6.0.2 as well as 6.2. It also runs fine on iPad Mini running 6.2. I also tested on the release build, 971, and it works fine too.

You only supplied a main.lua file so it’s missing the other files that could affect the test results.

For a three button alert box, the buttons are stacked vertically instead of horizontally. [import]uid: 7559 topic_id: 24295 reply_id: 145000[/import]

Hi Tom.

I tested here and that error only happens when the app is set to landscape mode.

I used to the following code to test:

[lua]

native.showAlert(“App Name”, “Alert Message”, { “Buttom1”, “Button2”, “Button3”} )

[/lua]

You can see the screenshot of that code above here: showalert.png

I am using Corona 2013.1033.

Renato [import]uid: 181011 topic_id: 24295 reply_id: 145006[/import]

Nobody mentioned landscape mode before so that was never tested.

I just modified my code so it’s landscape only and it displays three button alert box fine on iPhone5 running iOS 6.0.2 with build 1041.

We are no longer accepting bug reports that do not include a full project files or are missing testing details. We spend too much time working with main.lua files that don’t show the problem.

Update: So I see it’s the alert message text that is missing from the landscape mode. Thanks for posting the image. I wish that was include in the bug report along with it being used in landscape mode.

Update2: I just looked at the code using a debugger and the “alert message” is being passed to UIAlertView but it’s not being displayed. Looking at the alert box on the device it seems that IOS may not think there is not enough room to display this optional text field. It works with two buttons or on iPad or iPhone in portrait mode because there is more room to display the alert box.

I also found this on stackoverflow that discussed a hack to change the size of the alert text, indicating this is an Apple issue. Apple’s guidelines state if you need to display more than two buttons, you should rework your UI and what you display to your user.
http://stackoverflow.com/questions/8868939/uialertview-not-showing-message-text [import]uid: 7559 topic_id: 24295 reply_id: 145010[/import]