native.showPopup "bug" or missing functionality

Hi Coronalabs,

what’s the reason you have chosen not to implement callbacks for email and sms? Are you aware that the keyboard stays open on Android after an email has been sent? If you had added a callback handler it would have been possible to solve that bug for us, but now we’ll have to wait for you to either fix the keyboard issue, or implement a callback handler.

…we’d prefer the callback instead of a keyboard fix, since there are several things we need to do when using native.showPopup(email|sms). For example, hiding banner ads when the popup is opened, and showing them when it is closed is one thing we cannot do at the moment without a callback.

local options = { body = "Some body (somebody)", listener = function(event) native.setKeyboardFocus(nil); showBannerAds() end } native.showPopup("sms", options)

Thanks!

Bump.

Please fix this ASAP. I too have the same problem. The back button does dismiss the keyboard but thus is, of course, not acceptable as the UI looks a mess with the keyboard overlaying the screen. Users will be left wandering how to get rid of the keyboard and may simply decide to delete the app rather than press the back button.

Build is 2288 tested on Samsung Galaxy Tab 2.

@haakon - did you find a workaround by any chance?

Thanks.

MAS1

Turns out that this has been solved by ksan already. Thanks ksan!

Solution? Place native.setKeyboardFocus(nil) in “applicationResume”

MAS1.

Bump.

Please fix this ASAP. I too have the same problem. The back button does dismiss the keyboard but thus is, of course, not acceptable as the UI looks a mess with the keyboard overlaying the screen. Users will be left wandering how to get rid of the keyboard and may simply decide to delete the app rather than press the back button.

Build is 2288 tested on Samsung Galaxy Tab 2.

@haakon - did you find a workaround by any chance?

Thanks.

MAS1

Turns out that this has been solved by ksan already. Thanks ksan!

Solution? Place native.setKeyboardFocus(nil) in “applicationResume”

MAS1.

I would also like a fix for this. No listeners on email/sms is a problem for more than just keyboard hiding.

I would also like a fix for this. No listeners on email/sms is a problem for more than just keyboard hiding.

Plus one. We need the popup complete event badly.

Go to http://feedback.coronalabs.com and search for an existing entry for this or create a new one and get some votes for it.

Rob

Thanks for the hint.

native.showPopup

Please vote :slight_smile:

Plus one. We need the popup complete event badly.

Go to http://feedback.coronalabs.com and search for an existing entry for this or create a new one and get some votes for it.

Rob

Thanks for the hint.

native.showPopup

Please vote :slight_smile: