Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[firebase_admob] AdView not destroy on page navigation #32565

Seedorf161 opened this issue May 11, 2019 · 2 comments


None yet
3 participants
Copy link

commented May 11, 2019

I'm trying to dispose adview while navigating to a video player page.

I used

_bannerAd = null;

to destroy the davies but the ad is still shown on the new page. I discovered that using Navigator.pop before Navigator.push solve the issue but i don't want to pop the previous page.


This comment has been minimized.

Copy link

commented May 12, 2019

I can't seem to find a way around this too


This comment has been minimized.

Copy link

commented Jul 6, 2019

I use myBanner.dipose() method before calling Navigator...push and it works fine.

class AdMob {
    static void closeBanner(){
      if(myBanner != null){
       myBanner = null;
Navigator.of(context).push(MaterialPageRoute(builder: (context) => SomeScreen()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.