How to know when banner popup is dismissed?

Hi,

I am developing a game. I want to pause the game if the user taps on a banner which shows some kind of popup. And then resume the game when the banner “popup” is dismissed. 

In Appodeal listener I get the event with phase == “clicked” (here I could pause the game). But when the user taps the “done” button to dismiss the popup I don’t get any event.

How can I know the popup has been dismissed so I can resume the game?

Regards,

Ivan

If an ad takes over the app and directs a player away from your app, Corona should give you a system event suspending the app. When the app takes control again, you will get a resume event. You should be able to detect these.

See: http://docs.coronalabs.com/api/event/system/type.html

Now, if you’re game is one where it needs to be paused when a banner ad is interacted with, you’re probably not going have a successful banner ad campaign. If your game is time sensitive people are going to be paying attention to the game and not the ads, so the ads will just be wasted.

Read: http://docs.coronalabs.com/tutorial/basics/ads/index.html#banner-ads

Rob

Thanks for the answer Rob. In my case the ad doesn’t take over the app entirely. I just added a screenshot to the post. The popup covers most of the screen but my app is still active and I can see the timer going.

Ah… That’s an interstitial, not a banner. You will get an event in your ad event listener when it’s closed. Each ad provider may give the phase a different name. Consult the plugin’s documentation at https://docs.coronalabs.com to find the right event results.

Rob

Actually that thing came up by taping the banner. So I am not sure it is an interstitial. In any case, I print all events that come through the listener and there no event whatsoever when the thing is closed. I was hoping this was a known issue, hoping even more there was some kind of workaround.