Listening for " back" key event on Android when ad is displayed

Scenario:

I display both banners and interstial ads ( admob) in one of my apps, works fine.

I also remove the soft buttons using “immersiceSticky”, again works fine.

I came upon a situation today that I had never considered.

If the user clicks on the banner ad during the game etc the ad is duly displayed in the playstore etc.

Now when the user presses the " back" button to return to the game as expected the softbar is then visible and is very nearly touching my gameplay buttons( obviously this is not good).

I have tried listening for the “key.event” on the “back” button but it dosnt work, I presume because the playstore is displayed and I cant hook onto the back button in that situation as it is outside the game.

The key.event does fire in the game no problem.

I then looked at listening for the banner closing, but this didnt work, can I listen for a banner ad closing? I do it all the time with interstials without problem.

Any ideas on how to overcome this ?

To sum up, I just want to use immersiveSticky when I exit a displayed banner ad the same as i do when I exit an interstial.

thanks

EDIT: seems I can listen for “banner” but it still dosnt trigger anything when closed.

EDIT2: there must be some callback I can listen for ?

The system applicationResume event should fire:

https://docs.coronalabs.com/api/event/system/type.html

Hey,

thanks for the info, I was just checking that out and sure enough it does fire.

Great means I can sort out the game now :slight_smile:

The system applicationResume event should fire:

https://docs.coronalabs.com/api/event/system/type.html

Hey,

thanks for the info, I was just checking that out and sure enough it does fire.

Great means I can sort out the game now :slight_smile: