sbugert / react-native-admob

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

[iOS]: Attempt to present ViewController whose view is not in the window hierarchy #514

Open SmartArray opened 4 years ago

SmartArray commented 4 years ago

This is the warning XCode printed when we attempted to show an Interstitial app. Unfortunately, the Ad didn't show due to this issue.

The warning was generated from a call to this GADInterstitial method: https://github.com/sbugert/react-native-admob/blob/24bb5d907f42c3ccb0d8ffe0d0363b0e19665dc6/ios/RNAdMobInterstitial.m#L85