implementation 'com.google.firebase:firebase-ads:18.3.0'
I have integrated MoPub with following code
implementation 'com.google.ads.mediation:mopub:5.8.0.0'
implementation('com.mopub:mopub-sdk:5.10.0@aar') {
transitive = true
exclude module: 'libAvid-mopub' // To exclude AVID
exclude module: 'moat-mobile-app-kit' // To exclude Moat
}Please suggest a solution for this.
Hi Shrinidhi,
Thank you for reaching out to us.
It is entirely possible that the ad views for MoPub (from your previous Activity) are leaking as you switch from one Activity to the other. With that in mind, could you try destroying the MoPub ad views during the OnDestroy() lifecycle of your previous Activity? It would look something like this:
@Override
protected void onDestroy() {
if ( mMoPubView != null ){
mMoPubView.destroy();
}
super.onDestroy();
}
If the issue persists despite the above, could you then provide the details below (via Reply privately to author) so that I can further investigate the issue?
Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team
Hi Shrinidhi,
I'm afraid that I cannot comment on the severity of the effect that this issue will have on your app's performance, though it's still better if we could work through this issue and have it fixed than not. With that in mind, could you provide the details below (via Reply privately to author) so that I can further investigate the issue?
Alternatively, you may also forward your concern to the support channels of MoPub, as they may be able to provide insights on this as well.
Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team
Hi Shrinidhi,
Thank you for providing the requested details in private.
However, I must apologize for the confusion on what I meant by "sample project". Could you kindly send a copy of your sample Android project (not the built APK), via Reply privately to author, that I can use to replicate the issue? I'll be using this project to investigate the cause and possible fix to the issue.
Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team
Hi Shrinidhi,
I sent a message last November 19 asking for a copy of your sample Android project (not the APK) for investigation purposes. Could you confirm if you've received it? Here is a copy of my previous message:
Hi Shrinidhi,
Thank you for providing the sample project in private. I can confirm that I received it this time around.
I can also confirm that I was getting the same error logs when I tried out the replication steps. Upon further investigation, it seems that this issue does in fact stem from the MoPub SDK side, given that the logs reference the MoPub SDK as the most recent source of the issue. I would highly recommend that you consult with the support channels of MoPub instead (or refer to existing threads such as this), as I'm afraid that we don't have any insights to provide for such third-party SDKs.
Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team