-
-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛] Initial loads of banner ads fail #58
Comments
Update: I found the bug. In Android code only I'll submit the patch later tonight. |
* Fix: no banner ads loaded on Android in the initial render #58
🎉 This issue has been resolved in version 4.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* Fix: no banner ads loaded on Android in the initial render #58
* Fix: no banner ads loaded on Android in the initial render invertase/react-native-google-mobile-ads#58
Issue
On Android, it seems to me that when
<BannerAd>
is rendered, its first attempt to load an ad always fails, and no ad is displayed till something causes the banner to re-render later.I am pretty sure I render
<BannerAd>
after I calledsetRequestConfiguration()
and its result has resolved. I have configured my test device as the test device, so ad requests are supposed to be always fulfilled. The only thing I found so far, that may indicate to a bug in the lib is in the output ofadb logcat
I see such message about the time the banner renders without ads:and I don't see such message later, when it display the ads.
I'll probably try to figure out the problem, but posting a ticket if anybody who reads it has an idea from this description, what might be wrong.
Project Files
Javascript
Click To Expand
package.json
:# N/A
admob.json
:# N/A
iOS
Click To Expand
ios/Podfile
:# N/A
Android
Click To Expand
android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:TypeScript
?Y/N
&VERSION
Invertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: