Hardware back-button closes web popup, any way to avoid this?

I’m using web popups for ads and parts of GUI. However, if i open webpopup and press hardware back-button, it closes first the popup and after that triggers normal key event in Corona.
This is quite annoying, because people can close down ads and if webpopups are used as gui elements etc. accidental pressing of back button will cause gui to mess up.

Any info / fix on this?
[import]uid: 84524 topic_id: 14620 reply_id: 314620[/import]

I can’t believe that NOBODY else hasn’t come across with this problem? How are people using webpopups, if this current back-button behavior is “ok” with them?

This is unacceptable behavior for it.

Somebody from Ansca, comment on this? [import]uid: 84524 topic_id: 14620 reply_id: 55570[/import]

web popup support is abysmal. We’ve run into the Android back button issues as well and don’t have a solution. [import]uid: 86668 topic_id: 14620 reply_id: 57498[/import]

As of today’s daily build (available to you if you are a paid subscriber), we’ve implemented a new feature that addresses this issue. We’ve added a new “autoCancel” property, when set false, will prevent the web popup from automatically being closed by the BACK button.

local options = { autoCancel = false }  
local url = "http://www.anscamobile.com"  
native.showWebPopup(url, options)  

We haven’t fully tested this feature yet, but we will very soon. Please feel free to give it a try. One important thing to note is if you do set autoCancel to false, then the BACK button will then try to close your app, which is the normal behavior of an Android app. If you don’t want this to happen, then you’ll need to override the back key event. [import]uid: 32256 topic_id: 14620 reply_id: 57872[/import]