googleads/googleads-mobile-flutter

Call `MobileAds.initialize` on background thread

Opened this issue · 4 comments

The Google Ads team now recommends calling MobileAds.initialize on a background thread to avoid ANRs.

Currently, this Plugin calls MobileAds.initialize on the UI thread.

flutterMobileAds.initialize(context, new FlutterInitializationListener(result));

Hi @blaugold, thanks for flagging. I've shared this with engineering to determine next steps.

Is there any workaround we can do on the flutter side while this lib is not updated? Can we call MobileAds.initialize in another Isolate safely?

Hi @Gilianp, we have a PR in the works #1165 that will be included in the next version. Please see until it's submitted

Hi @Gilianp, we have a PR in the works #1165 that will be included in the next version. Please see until it's submitted

Thanks @malandr2 , I will wait the next update!