-
Notifications
You must be signed in to change notification settings - Fork 28.5k
[Android] Severe glitch when navigating to a screen with google_mobile_ads #95343
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
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Same here. Have published apps in productions stores with this defect, a bit annoying... |
SVID_20211216_121014_1.mp4Same here : flutter 2.8.0 was not appear on 2.5.3 |
Yes, this is preventing me from publishing to Production as well. Unfortunately downgrading to 2.5.3 its not an option for me due to some other issue. |
Hi @peterwvj, Thanks for filing the issue. I am able to reproduce the issue with stable 2.8.0 and the Screen.Recording.2021-12-16.at.4.18.17.PM.movHere is a timeline trace run using skia flag enabled on the stable channel on Xiaomi k20 pro(Android 11), if this can help track down the bug. flutter doctor -v
logs in profile mode with trace skia
Edit: This issue is only reproducible when using the ads plugin on cc: @blasten |
Heard flutter 2.8 has improve in terms of app performance and just upgrated to latest version and Now I am seeing glitch issue while navigating(Banner Ads). Funny things is that as long as you have ads in both screen ie. it work fine. It seems like I have to add ads in all screen to make it work otherwise downgrade the flutter version. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This started with flutter/engine@866db62 During the transition between the screens there may be a This will result in a call to The |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The latest 2.10 version still got this problem. For first time only though. pop the second screen and push again, the blink goes away. |
Just noticed after deployed app to production, It is bit annoying too. Thought issue was fixed, Please look into it. I am also using flutter latest version which is flutter 2.10 |
This problem was much worse in stable version 2.8.1 |
I'm testing in the 2.10 stable version and the issue was reproducible sometime , look like thee video below: Screenrecorder-2022-02-08-13-40-48-945.mp4
|
it's almost two month, I am still using version 2.5.3 to build android app. |
I modified the example a little bit, and I can see the issue now. I'm taking a look at the issue. Codevoid main() {
WebView.platform = SurfaceAndroidWebView();
runApp(MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const MaterialApp(home: HomeScreen());
}
}
class HomeScreen extends StatefulWidget {
const HomeScreen({Key? key}) : super(key: key);
@override
_HomeScreenState createState() => _HomeScreenState();
}
class _HomeScreenState extends State<HomeScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Column(
children: [
ListTile(
title: Text('Red'),
onTap: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return const ProducDetailPage();
}));
},
),
ListTile(
title: Text('Green'),
onTap: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return const ProductDetailPage2();
}));
},
),
SizedBox(
height: 150,
child: WebView(
initialUrl: 'https://flutter.dev',
),
),
],
),
),
);
}
}
class ProducDetailPage extends StatelessWidget {
const ProducDetailPage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Produc Detail'),
),
body: Column(children: const [
Padding(
padding: EdgeInsets.all(8.0),
child: SizedBox(
height: 150,
child: Placeholder(
color: Colors.red,
),
),
),
SizedBox(
height: 150,
child: WebView(
initialUrl: 'https://flutter.dev',
),
),
]));
}
}
class ProductDetailPage2 extends StatelessWidget {
const ProductDetailPage2({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Produc Detail'),
),
body: Column(children: const [
SizedBox(
height: 150,
child: Placeholder(
color: Colors.green,
),
),
]));
}
} |
I synced to the commit prior to flutter/engine@866db62, and I'm still able to see a glitch if I run the code snippet I shared above. The good news is that once flutter/engine#31198 is merged, this issue will be fixed from its root cause and won't happen again. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@blasten Will this be released in 2.10 hot fix? |
i dont have a problem with flutter 2.10 and google ads 1.1.0 anymore. |
|
flutter 2.10 and google_mobile_ads ^1.1.0 . It seems to me that the problem is still occurring. Right when I updated it stopped blinking but soon after it came back |
flutter 2.10.2 and google_mobile_ads: ^1.1.0 . It seems to me that the problem is still occurring. :( |
Flutter 2.10.2, Such a turnoff. Cannot release the app to the play store because of this issue. |
flutter 2.10.3 and google_mobile_ads: ^1.1.0 . It seems to me that the problem is still occurring. :( |
2.10.3 still occurring , in my case with webView_flutter : 1、 if I only |
Any progress on this? Until this gets fixed I'm stuck on 2.5.3 and with me probably most people using the ads package. |
same here stuck on |
I've tested on |
The ultimate fix for this issue is available on the master channel. @marcellocamara can you try building with the master channel? |
@blasten I've tested on :
No glitches found 👍🏻 |
Thanks for confirming. If someone is having this issue. please try the steps described above, and comment |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Upgrading to Flutter 2.8.0 causes flickering when navigating between screens in apps that contain ads. In particular, the flickering happens when navigating to a new screen from another screen that has a banner ad. When commenting out the banner the flickering goes away.
The problem is not producible using Flutter 2.5.3.
The issue was originally raised in googleads-mobile-flutter but after investigating the issue further it is now believed to be a problem with the Flutter SDK.
To produce the problem, run the attached application code using google_mobile_ads: 1.0.1 and Flutter 2.8.0.
Video sample, code sample and
flutter doctor -v
output produced by @maheshmnjCode sample
Video showing the bug (Flutter 2.8.0), This bug is not reproducible using Flutter 2.5.3:
flutter-2.8.0-bug.mov
flutter-2.5.3-no-bug.mov
Can presumably be reproduced using any Android 12 device. See
flutter doctor -v
output for details.flutter doctor -v
The text was updated successfully, but these errors were encountered: