bdlukaa / native_admob_flutter

Easy-to-make native ads in flutter using AdMOB SDK.
https://pub.dev/packages/native_admob_flutter
BSD 3-Clause "New" or "Revised" License
80 stars 56 forks source link

Banner ads issue #121

Open elkhalifte opened 2 years ago

elkhalifte commented 2 years ago

Banner ads are still getting impressions even if the app is in background mode. This issue will lead to admob limit (invalid traffic). I think you should resolve this by adding a lifecycle and then put banner ads in pause when the app is in background.

EternalYouth29 commented 2 years ago

Banner ads are still getting impressions even if the app is in background mode. This issue will lead to admob limit (invalid traffic). I think you should resolve this by adding a lifecycle and then put banner ads in pause when the app is in background.

Can Native Ads prevent this invalid traffic issue? I encountered similar issue, I added a Banner Ads in BottomNavigationBar under SliverAppBar with TabBar. Due to Flutter limitation, the tabs get rebuilt every time when I switch tab, and this leads to admob limit (invalid traffic). Does Flutter cache Native Ads ? I am thinking to switch to Native Ads, but it this package doesn't support Native Ads for iOS.

elkhalifte commented 2 years ago

i have implemented banner ads without the issue you mentioned. my banner ads does not get rebuilt when switching tabs or on setState.

and , yeah it well be nice to replace banner ads with native.

EternalYouth29 commented 2 years ago

i have implemented banner ads without the issue you mentioned. my banner ads does not get rebuilt when switching tabs or on setState.

and , yeah it well be nice to replace banner ads with native.

My rebuilt issue only happens in SliverAppBar with TabBar . Okay thanks, I will switch to native ads first, and might have to switch to google_mobile_ads plugin in the future.

bdlukaa commented 2 years ago

Maybe if they're not used in each tab, but below (or above) the whole TabBar and TabBarView, and above BottomNavigationBar, just like the example app

elkhalifte commented 2 years ago

@bdlukaa yes. Banner ads are totally working fine and don't get rebuild