Closing interstitial AdMob ads soft crashes app

My app uses expo-ads-admob to show interstitial ads from AdMob. When users on Android close the interstitials, their app crashes and resets to the main View. How can I fix this? There is no error or warning message when it happens.

I fixed this by adding an event listener to AdMobInterstitial for interstitialDidClose. In the listener, I passed parameters to restore the user’s state and navigate back to the screen they were on. Make sure to remove the event listener when the React component unmounts.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.