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

Poor performance with google_mobile_ads. #189

Closed
AndersonFiorini opened this issue Apr 21, 2021 · 10 comments
Closed

Poor performance with google_mobile_ads. #189

AndersonFiorini opened this issue Apr 21, 2021 · 10 comments

Comments

@AndersonFiorini
Copy link

I am having severe performance problems when a banner or a rewarded is loaded. Smartphones like Galaxy S10 and newer, the performance does not drop so much, however average smartphones the problems are severe, causing crashes. The very example of using this plugin that was made available by Google on GitHub is experiencing performance problems on average smartphones.

@jangruenwaldt
Copy link

+1 please... this needs to be fixed, as in current state, this plugin is unusable. Who wants to get spammed with 1* reviews because the app is super laggy suddenly? Its impossible to test this for all devices

@armandojimenez
Copy link

Any fix for this?

@guidospadavecchia
Copy link

I agree with @jangruenwaldt , the plugin in it's current state cannot be used. Google really needs to fix this ASAP. I won't use google_mobile_ads like this and ruin my app.

@sageata
Copy link

sageata commented May 14, 2021

Any fix for this?

@armandojimenez, I downgraded to 0.12.1 by removing ^ and the performance issues remain.

I think they will fix this before Google I/O. It seems they have a very big release in the pipeline.

Spoiler alert

They will be introducing Rewarded Interstitials

@shofizone
Copy link

Teue.
App is super laggy in all of the low end devices or little older smart phone. Peoples are complaining about app performance. This issue should have heigh priority.

@jangruenwaldt
Copy link

Teue.
App is super laggy in all of the low end devices or little older smart phone. Peoples are complaining about app performance. This issue should have heigh priority.

Yeah this plugin is unusable. I recomnend you to switch to native_admob_flutter if you want to make your app usable for more than high end devices. A third party developer makes a better plugin than Google. Strange world.

@blasten
Copy link

blasten commented Jun 3, 2021

Thanks for the feedback. We are constantly looking for ways to improve.

Our docs explains the issues that you are seeing.

Performance is better on Android 10, and it will continue to get better as more users upgrade. (Currently at 35.3%, but rapidly growing).

@shofizone
Copy link

@blasten You should check performance in mid and low-budget android, which has an android version below android 10. The app is almost unusable on those devices. Because of horrible performance we have to disable ads in low-end old devices. We can't depend on 35.3%.
.... Thanks.

@blasten
Copy link

blasten commented Jun 5, 2021

@shofizone understood. One workaround is to use the device_info plugin to obtain the Android version, and add the widget to the tree if the Android version is least 10.

@blasten
Copy link

blasten commented Jul 21, 2021

We have added a flag to the Flutter master channel that helps improve the performance.

It's not a perfect fix since the Ad may be a few frames behind the Flutter frame, but depending on the layout you use, it could be useful.

Please try it out, and let us know if the performance is improved.

To use this flag, set PlatformViewsService.synchronizeToNativeViewHierarchy(false). For example:

import 'package:flutter/services.dart';

void main() {
   PlatformViewsService.synchronizeToNativeViewHierarchy(false);
   runApp(MyApp());
}

I'm closing this issue, and moving the conversation to: #269

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants