question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google ad keep reloading window

See original GitHub issue

Below i attached video of the issue https://user-images.githubusercontent.com/49301530/124384330-44d3f200-dcee-11eb-9f1a-3ccf80185bb6.mp4 Attaching output of flutter doctor -v command

[✓] Flutter (Channel stable, 1.22.6, on Linux, locale en_US.UTF-8)
    • Flutter version 1.22.6 at /home/ashu/flutter_linux_1.22.6-stable/flutter
    • Framework revision 9b2d32b605 (5 months ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5


[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /home/ashu/Android/Sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.292.b10-0.fc32.x86_64/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_292-b10)
    • All Android licenses accepted.

[!] Android Studio
    • Android Studio at /home/ashu/android-studio-ide-201.7042882-linux/android-studio/bin
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    ✗ android-studio-dir = /home/ashu/android-studio-ide-201.7042882-linux/android-studio/bin
    ✗ Android Studio not found at /home/ashu/android-studio-ide-201.7042882-linux/android-studio/bin
    • Try updating or re-installing Android Studio.
    • Consider removing your android-studio-dir setting by running:
      flutter config --android-studio-dir=

[✓] VS Code (version 1.57.1)
    • VS Code at /usr/share/code
    • Flutter extension version 3.24.0

[✓] Connected device (1 available)
    • Redmi Y3 (mobile) • 666b7162 • android-arm64 • Android 10 (API 29)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:10

github_iconTop GitHub Comments

1reaction
zerox1212commented, Nov 16, 2021

@ashut08 @maheshmnj Enabling hybrid composition seems to resolve my issue with GoogleMaps.

I added the following code:

import 'package:flutter/foundation.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';


void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  if (defaultTargetPlatform == TargetPlatform.android) {
    AndroidGoogleMapsFlutter.useAndroidViewSurface = true;
  }
  runApp(MyApp());
}

I will test it on some real devices. From what I understand this Hybrid Composition will hurt performance on older phones.

1reaction
zerox1212commented, Nov 16, 2021

Same issue for me. In my case it’s very obvious when using a “Speed Dial FAB”. When the speed dial is open, the ad keeps taking focus and reloading the entire screen. I will try to make a minimal example soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome Tabs Keep Auto-Refreshing? Here's How to Fix It
Launch Task Manager and close any background process that Chrome is still running.
Read more >
Refresh rate for ads in mobile apps - Google Ad Manager Help
Sign in to Google Ad Manager. · Click Inventory and then Ad units. · Click an ad unit's name to open its settings....
Read more >
Control ad loading and refresh | Google Publisher Tag
Refreshing ad slots too quickly may cause your ad requests to be throttled. To prevent this, avoid refreshing slots more frequently than once...
Read more >
Google homepage keeps on refreshing constantly when click ...
Press Windows key + C. c. Type Troubleshooting, under Search. d. Click on Troubleshooting and click View All on the task pane on...
Read more >
What is Ad Refresh and How Does It Work? - Publift
When it comes to time-based triggers, the minimum time interval Google allows is 30 seconds, while recommended best practice is 60 seconds. It ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found