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

Loading banner ads freezes the app / restarts the phone on certain devices #256

Open
GrimDevStudio opened this issue Jan 29, 2021 · 2 comments
Labels
needs community support Requesting support from the community

Comments

@GrimDevStudio
Copy link

I've had this issue reported from quite a few users with LG Stylo 6 and T-mobile Revvl 4. Removing the banner ads fixed the problem for them. I don't have those devices so it's impossible to properly test what's going on. My Flutter version is 1.22.5 stable.

Sample code of the ad used in the app:

static buildBanner() {
    AdmobBanner banner = AdmobBanner(
      adUnitId: BANNER_UNIT_ID_ANDROID,
      adSize: AdmobBannerSize.BANNER,
      listener: (AdmobAdEvent event, Map<String, dynamic> args) {
        if (event == AdmobAdEvent.failedToLoad) {
          print("Error code: ${args['errorCode']}");
        }
      },
    );

    return Padding(
      padding: const EdgeInsets.only(top: 2.0),
      child: Center(child: banner),
    );
  }
@kmcgill88 kmcgill88 added the needs community support Requesting support from the community label Feb 11, 2021
@oguz42
Copy link

oguz42 commented Mar 1, 2021

i have the same problem, i think it this package causes memory leak.

@javadi69
Copy link

I had this issue when using with Firebase packages and a certain version of it.
I fixed this problem by setting FirebaseSDKVersion in app/build.gradle
Perhaps newer versions work too, but I didn't test those.

rootProject.ext { set('FlutterFire', [ FirebaseSDKVersion: '26.2.0' ]) }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs community support Requesting support from the community
Projects
None yet
Development

No branches or pull requests

4 participants