Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
gladiuscode opened this issue Apr 23, 2024 · 0 comments

Comments

@gladiuscode
Copy link
Contributor

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:

  • React Native v.73.0
  • iOS Simulator 17.2
  • Android Emulator API 34

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant