Back button closes interstitial ads prematurely in flutter

127 views
Skip to first unread message

Marcos Rodríguez

unread,
Feb 24, 2025, 4:57:07 PM2/24/25
to Google Mobile Ads SDK Developers

Hello Flutter Community,

I'm having an issue with interstitial ads in my Flutter app using the google_mobile_ads package. The problem is that pressing the back button immediately closes the ad, even before it starts playing.

I've noticed that in other apps, the ad doesn't close immediately when pressing back. Instead, it lets the loading bar finish before allowing the user to close it.

My Questions:
  1. How can I prevent the ad from being closed too early?
  2. Is there a way to let the ad finish loading before allowing it to be dismissed with the back button?
  Any suggestions or solutions would be really appreciated! Thanks in advance!  

Mobile Ads SDK Forum Advisor

unread,
Feb 24, 2025, 5:00:47 PM2/24/25
to marcosr...@gmail.com, google-adm...@googlegroups.com
Hi,

Thank you for contacting Mobile Ads SDK Support Team.

To investigate why ads are disabled by the back button despite the counter, please provide the following details.
  • App ID
  • AdUnit ID
  • SDK version 
Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-02-24 21:59:57Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH3gE:ref" (ADR-00289618)



Marcos Rodríguez

unread,
Feb 25, 2025, 4:59:54 AM2/25/25
to Google Mobile Ads SDK Developers
Hi,

After removing  android:enableOnBackInvokedCallback="true" in my AndroidManifest it is working for me. Tell me please if it is a good solution.

Thanks in advance,

Marcos 

Mobile Ads SDK Forum Advisor

unread,
Feb 25, 2025, 11:39:37 AM2/25/25
to marcosr...@gmail.com, google-adm...@googlegroups.com

Hi, 

Yes, it is a feasible solution.

Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-02-25 16:38:48Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH3gE:ref" (ADR-00289618)



Reply all
Reply to author
Forward
0 new messages