sbugert / react-native-admob

A react-native component for Google AdMob banners
BSD 2-Clause "Simplified" License
1.13k stars 532 forks source link

AdMobInterstitial Ads App crashing on request #557

Open zoobibackups opened 3 years ago

zoobibackups commented 3 years ago

I have an issue that after the interstitial ad is closed and I request for a new ad then the app is crashing. the app is crashing randomly. Here is my function

    AdMobInterstitial.showAd()
            .catch(error => {});

            AdMobInterstitial.addEventListener('adClosed', () => {
                AdMobInterstitial.requestAd().catch(error => {
                })
            })

I have opened debug the project in the console and have the following error.

_requestAdResolve(nil);

with the error codes are the following.

self    RNAdMobInterstitial *   0x600000207de0  0x0000600000207de0
ad  GADInterstitial *   0x600000a07a30  0x0000600000a07a30
hasListeners    BOOL    YES true
_requestAdResolve   RCTPromiseResolveBlock  (null

I am using google Admob SDK pod 'Google-Mobile-Ads-SDK', '7.69.0'

Screenshot 2021-03-08 at 11 14 43 AM
mursang commented 2 years ago

Were you able to find any solution?