Double banners after using of recreate() method of android Activity class

24 views
Skip to first unread message

alch...@gmail.com

unread,
Apr 18, 2021, 12:02:32 PM4/18/21
to Google Mobile Ads SDK Developers
Hello,


Another bug that I found in time of moving my app to latest com.google.firebase:firebase-ads:20.0.0 related with using of recreate() method (from Activity class) for restart android activity. For me such situation leads to double banners. As far as I know, its a violation of admob policy. Glad that I found it in time of testing of my app with test banners, because such situation probably could leads to ban of developer account...

I should say that previously I used admob library com.google.firebase:firebase-analytics:17.5.0 and as far as I know the old version does not produced such critical issue.

If case someone interesting about how I fixed it: I switched to another way of restarting android activity:

startActivity(Intent.makeRestartActivityTask(getActivity().getIntent().getComponent()));

The way of restarting activity does not leads to double banners, but looks not so good as previously used way with recreate() method.


Best regards,
Alex.


Mobile Ads SDK Forum Advisor Prod

unread,
Apr 18, 2021, 11:44:31 PM4/18/21
to alch...@gmail.com, google-adm...@googlegroups.com
Hi Alex,

Thank you for raising this to us.

Could you please provide the following details via Reply privately to author option?
  • A test project where the behavior is reproducible
  • Steps to trigger the behavior
  • Screencast of the issue
If the option mentioned doesn't work, you may send the the requested information directly to mobileads...@gmail.com, then let us know in this thread once it has been sent.

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2FZXm1:ref
Reply all
Reply to author
Forward
0 new messages