android - Why AdMob interstitial lock UI thread? -
while using method tracing util, encountered problem android admob interstitial ads.
now use latest version of admob:
compile 'com.google.firebase:firebase-ads:9.4.0'
and code:
long start = system.currenttimemillis(); interstitialad.loadad(adrequest); log.d(tag, "load: " + (system.currenttimemillis() - start) + " ms");
prints:
load: 1250 ms
and locks ui thread.
example device: lg g3 android 5.0.
i don't understand why locks.
p.s. logs
09-08 11:35:52.294 i/ads: starting ad request. 09-08 11:35:52.297 i/ads: use adrequest.builder.addtestdevice("c847646ce34895e5c61dea64e092f1a5") test ads on device. 09-08 11:35:53.157 w/ads: webview destroyed. ignoring action. 09-08 11:35:53.224 e/ads: js: uncaught referenceerror: afma_receivemessage not defined (:1) 09-08 11:35:53.546 i/ads: scheduling ad refresh 30000 milliseconds now. 09-08 11:35:53.553 i/ads: ad finished loading.
p.s.2
i answer question in official admob googe group answer
i think bug , should reported firebase team. i'm looking @ interstitialad documentation, , says loadad
:
start loading ad on background thread.
if takes such long time complete method, i'm pretty sure didn't use background thread or @ least didn't properly. can try making call on slow network, in case think anr. should confirm blocking call.
Comments
Post a Comment