Closing interstitial AdMob ads soft crashes app


#1

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.


#2

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.


closed #3

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