Blank screen after few seconds
See original GitHub issuePlugin Version
google_mobile_ads: ^0.13.5
Steps to Reproduce
I am not sure how to reproduce this, I have a lot of code and it started happening after I added googleads-mobile-flutter to it. I know it is very hard to determine what is happening without reproducing the error, but at least someone could have a clue about this problem.
Expected results: Application runs normal and ads shown.
Actual results: Widgets get “blank” after some seconds, everything works normal (i.e. buttons, methods, classes).
Issue Really seems like some rendering problem. I also thought could be some memory leak or something, but memory test on dev tools does not point it. Also I read something about android garbage collector and flutter embedding. I only happens when ads are active (if user gets premium it stops happening). Seems that it occurs when webview is destroyed (log: “W/Ads (13786): 004 The webview is destroyed. Ignoring action.”)
Logs
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.6 20G165 darwin-arm, locale en-BR)
• Flutter version 2.5.3 at /Users/brunoandrade/Dev/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 18116933e7 (4 weeks ago), 2021-10-15 10:46:35 -0700
• Engine revision d3ea636dc5
• Dart version 2.14.4
[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/brunoandrade/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[!] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 13.1, Build version 13A1030d
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
[✓] VS Code (version 1.62.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.28.0
[✓] Connected device (3 available)
• M2003J15SC (mobile) • 0fe657a70502 • android-arm64 • Android 11 (API 30)
• macOS (desktop) • macos • darwin-arm64 • macOS 11.6 20G165 darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome 95.0.4638.69
Issue Analytics
- State:
- Created 2 years ago
- Comments:11
Top GitHub Comments
Running on Windows with an Android virtual device. Using Flutter Stable channel. Thanks.
@mattf80 please file this as a separate issue to track.
Hi @maheshmnj, it happens every time, some times after few seconds, sometimes few minutes. I’ve noticed if I try to login with Google (firebase_auth/google_sign_in) it happens right away. I have tried with Android only. I don’t think it’s with some specific ad, I tried removing banner and keeping intersticial, and the other way around, same results. I did upgrade to latest version 0.13.6 and it keeps going. I will create a new app and try to reproduce by today, I’ll keep you posted. Thank you.