Closed MadeinFrance closed 1 month ago
Ok so useInterstitialAd
is not working as expected. It seems like the LOADED
event is triggered when using the non-hook version:
// const { isLoaded, load, show, error } = useInterstitialAd(
// interstitialAdUnitId,
// requestOptions
// )
const interstitial = InterstitialAd.createForAdRequest(
interstitialAdUnitId,
requestOptions
)
Oke, feel free to submit a PR and improve this community effort :)
Just tested, working fine in the example app.
Hi @dylancom thanks for testing, do you think the version mismatch for this issue and the example App, could be a potential reason? v74
/ v72
I ran .refresh-example.sh right before testing which makes sure that the example app is on the latest RN (0.74)
Does this only happen in release mode? The example app has been updated btw.
Yes release mode. Next week, I can try to debug with the example App and my IDs.
it works as expected with the demo project š
What happened?
Given: a release build:
react-native run-android --mode=release
Then: the interstitial Ad is not loading anymore. (In previous version
v12
the following code was working, now inv13
isLoaded
is never true.)Kotlin version:
1.9.22
RN:0.74.1
Platforms
Android and iOS
React Native Info
Are your using Typescript?
package.json
app.json
ios/Podfile
No response
android/build.gradle
No response
android/app/build.gradle
No response
android/settings.gradle
No response
AndroidManifest.xml
No response