native.showAlert

weihua44,

Thank you for reporting this issue. Yes, the Corona Simulator’s native alert dialog on Windows cannot have more than 3 buttons. It is a limitation in our code that we’ll need to resolve at some point in the future. I just wrote up a bug report for it now. [import]uid: 32256 topic_id: 24295 reply_id: 115179[/import]

Is there a bug with native alerts on HTC devices running android 4.0 ICS? I’m getting distorted text for the alerts that are not readable. the button text on the alerts look fine.
thanks. [import]uid: 41496 topic_id: 24295 reply_id: 117126[/import]

I haven’t heard of any bugs like that. Can you provide us a screenshot? Also, if there are any notable errors in the Android log (can be seen via “adb logcat” or “ddms”) then can you post that too?

We have seen TextField and TextBox text get garbled up and turned into black rectangles on a Nexus 7 running Android 4.1. It’s an Android bug causing all kinds of OpenGL errors in Google’s code that we have to somehow find a work-around for. Perhaps you’ve found a similar issue that we’ll need to work-around. [import]uid: 32256 topic_id: 24295 reply_id: 117195[/import]

Has anybody had an issue with the message text disappearing on iOS when using an alert with three buttons? Everything works fine in the simulator, and an alert with two buttons instead of 3 shows up fine on iOS.

[lua]local alert = native.showAlert(
“Rate Application”,
“Please rate this app to help support future development!”,
{
“Rate now”,
“Remind me later”,
“No, thanks”
}, onComplete
)[/lua] [import]uid: 135199 topic_id: 24295 reply_id: 136170[/import]

Mark,

I’m wondering if the comma ‘,’ in your 3rd button’s text is preventing that button from being displayed. Try removing the comma.

I’m an Android guy here at Corona Labs, so I can’t test this for myself… but I’ll let one of our testers know and give it a try later. If you can let us know if the comma works-around the issue, then that would be great. Thanks. [import]uid: 32256 topic_id: 24295 reply_id: 136377[/import]

Hi Joshua, thanks for the response. I tried a much simplified example and still get the same bug on the iPhone 5. However, on an iPad 2, it does show up. There’s still plenty of extra room on the 5 for the alert box to expand, so I don’t think it’s a screen size issue.

Here’s the code I’m using now:

[lua]local alert = native.showAlert(
‘title’,
‘text’,
{
‘1’,
‘2’,
‘3’
}
)[/lua] [import]uid: 135199 topic_id: 24295 reply_id: 136384[/import]

Mark,

I’ll inform our QA group about this issue. Just one more question for you. Can you tell us what OS version your iPhone 5 and iPad 2 are running please?

I of course assume your iPhone 5 is running the latests and greatest, but I suspect your iPad 2 is running a different iOS version. [import]uid: 32256 topic_id: 24295 reply_id: 136391[/import]

Thanks. The phone is on 6.0.2 and iPad on 6.0.1. [import]uid: 135199 topic_id: 24295 reply_id: 136395[/import]

Actually, if you don’t mind, can you write this up as a bug report please? You can do so by clicking the “Report a Bug” link at the top of this web page. That way it gets into our tech-support queue and you’ll receive an e-mail response when it gets resolved. Just trying to make sure this issue does not get forgotten. [import]uid: 32256 topic_id: 24295 reply_id: 136396[/import]

Sure thing, I just submitted it: Case 19805. [import]uid: 135199 topic_id: 24295 reply_id: 136420[/import]

Has anybody had an issue with the message text disappearing on iOS when using an alert with three buttons? Everything works fine in the simulator, and an alert with two buttons instead of 3 shows up fine on iOS.

[lua]local alert = native.showAlert(
“Rate Application”,
“Please rate this app to help support future development!”,
{
“Rate now”,
“Remind me later”,
“No, thanks”
}, onComplete
)[/lua] [import]uid: 135199 topic_id: 24295 reply_id: 136170[/import]

Mark,

I’m wondering if the comma ‘,’ in your 3rd button’s text is preventing that button from being displayed. Try removing the comma.

I’m an Android guy here at Corona Labs, so I can’t test this for myself… but I’ll let one of our testers know and give it a try later. If you can let us know if the comma works-around the issue, then that would be great. Thanks. [import]uid: 32256 topic_id: 24295 reply_id: 136377[/import]

Hi Joshua, thanks for the response. I tried a much simplified example and still get the same bug on the iPhone 5. However, on an iPad 2, it does show up. There’s still plenty of extra room on the 5 for the alert box to expand, so I don’t think it’s a screen size issue.

Here’s the code I’m using now:

[lua]local alert = native.showAlert(
‘title’,
‘text’,
{
‘1’,
‘2’,
‘3’
}
)[/lua] [import]uid: 135199 topic_id: 24295 reply_id: 136384[/import]

Mark,

I’ll inform our QA group about this issue. Just one more question for you. Can you tell us what OS version your iPhone 5 and iPad 2 are running please?

I of course assume your iPhone 5 is running the latests and greatest, but I suspect your iPad 2 is running a different iOS version. [import]uid: 32256 topic_id: 24295 reply_id: 136391[/import]

Thanks. The phone is on 6.0.2 and iPad on 6.0.1. [import]uid: 135199 topic_id: 24295 reply_id: 136395[/import]

Actually, if you don’t mind, can you write this up as a bug report please? You can do so by clicking the “Report a Bug” link at the top of this web page. That way it gets into our tech-support queue and you’ll receive an e-mail response when it gets resolved. Just trying to make sure this issue does not get forgotten. [import]uid: 32256 topic_id: 24295 reply_id: 136396[/import]

Sure thing, I just submitted it: Case 19805. [import]uid: 135199 topic_id: 24295 reply_id: 136420[/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]