Google Play has recently instituted a new policy where developers need to stay under a certain ANR threshold or else be punished by Google Play (your app or game becomes less discoverable on Google Play because it is considered lower quality). ANR stands for “Application Not Responding” and instances of this are reported on the Google Play Console. Currently, my games that use AdMob have ANRs that are above the threshold that Google considers “bad behavior”. The problem is that I can’t do anything about it because the majority of my ANRs appear to be from AdMob ads. Many of these have to do with “android.os.MessageQueue.nativePollOnce” which, from the research I have done, is not within my control and is an AdMob thing.
Note that my premium game that doesn’t have ads practically has no ANRs and I’m WAY below the threshold of bad ANRs. My premium game is very similar to my ad supported game and they share a lot of code. The largest difference is the ads.
Note that I’m using the most up to date ad SDK (com.google.firebase:firebase-ads:21.3.0) and I’m even using a new advanced Beta feature from AdMob that is supposed to optimize initialization and loading of ads (see manifest code below), yet I’m still seeing ANRs.
<meta-data
android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION"
android:value="true"/>
<meta-data
android:name="com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING"
android:value="true"/>
Any help you can give me is much appreciated.
|
||||||