Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How to know when banner popup is dismissed?
Started by ivansolispadilla Oct 27 2019 12:55 PM

4 replies to this topic
appodeal banner popup game
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

ivansolispadilla

[GLOBAL: userInfoPane.html]
ivansolispadilla
  • Observer

  • 6 posts
  • Corona SDK

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?

 

Attached File  IMG_7615.PNG   718.54KB   0 downloads

 

Regards,

Ivan



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,681 posts
  • Enterprise

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



[TOPIC: post.html]
#3

ivansolispadilla

[GLOBAL: userInfoPane.html]
ivansolispadilla
  • Observer

  • 6 posts
  • Corona SDK

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.



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,681 posts
  • Enterprise

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



[TOPIC: post.html]
#5

ivansolispadilla

[GLOBAL: userInfoPane.html]
ivansolispadilla
  • Observer

  • 6 posts
  • Corona SDK

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.




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: appodeal, banner, popup, game