NZME / react-native-ad-manager

Google Ad Manager bridge for React Native
MIT License
52 stars 61 forks source link

[Android&IOS] - Interstitial ads - It shows up only once and isReady crashes on Android #124

Closed gladiuscode closed 5 months ago

gladiuscode commented 6 months ago

Hi! We've implemented this library to show Interstitial ads between screens and we noticed the following issues:

  1. On both platforms the interstitial ad shows up only once;
  2. On Android, whenever we call isReady, the app crashes;

This is our setup:

After a debugging session, we managed to fix up both issues as follow:

  1. On Android there was a problem with isReady callback parameter. Right now this library attempts to pass mInterstitialAd directly, but it is an object and it isn't possible to return an instance as a callback parameter;
  2. On iOS there was a problem with requestAd, the condition to check if we can request a new add should be inverted;

Here you can find our patch that we created using patch-package