Closed Vijay053 closed 3 years ago
The firebase_admob
plugin will be deprecated in April 2021 in favor of Google Mobile Ads SDK for Flutter.
Google Mobile Ads SDK for Flutter is a new Flutter plugin that supports more Ads formats than firebase_admob
does. Google Mobile Ads SDK for Flutter currently supports loading and displaying banner, interstitial (full-screen), native ads, and rewarded video ads across AdMob and AdManager. It also supports displaying banner and native ads as Widgets
as opposed to being overlayed over all app content.
We're now recommending projects currently using firebase_admob
migrate to Google Mobile Ads SDK for Flutter following the instructions outlined here.
Issues with migrating or with using the new package should now be raised over on the Google Mobile Ads SDK for Flutter repository.
Sometime ads on android doesn't dispose even after calling dispose. Users of my app are reporting that ads are covering their screens. I have seen this issue ([https://github.com/FirebaseExtended/flutterfire/issues/96]) and I have tried to handle it. Following is my code to handle one ad unit.
I am calling dispose method at two places:
I am not able to replicate the issue locally, but lots of my users has sent me screenshots where ad is covering next screen.
Flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel beta, 1.19.0-4.3.pre, on Mac OS X 10.15.5 19F101, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [✓] Xcode - develop for iOS and macOS (Xcode 11.6) [✓] Chrome - develop for the web [✓] Android Studio (version 4.0) [✓] VS Code (version 1.47.2) [✓] Connected device (3 available)
• No issues found!