You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On iOS only, calling .show() does not display the loaded rewarded ad.
Android works fine.
I have the same behaviour when using react-native-admob@2.0.0-beta.5 but on expo-ads-admob@5.0.1 it works great.
Using react-native-firebase@5.5.3, same behaviour on 5.4.3 also.
In Xcode I'm getting this warning: 2019-06-25 22:47:41.709477+0300 AppName[11144:66747] Warning: Attempt to present <GADFullScreenAdViewController: 0x7fb0a6fa7010> on <UIViewController: 0x7fb0a4f21630> which is already presenting <RCTModalHostViewController: 0x7fb0a817f650>
Project Files
iOS
Click To Expand
ios/Podfile:
I'm not using Pods
I'm using Pods and my Podfile looks like:
# Uncomment the next line to define a global platform for your projectplatform:ios,'9.0'target'AppName'do# Comment the next line if you don't want to use dynamic frameworks#use_frameworks!# Pods for AppNamepod'React',:path=>'../node_modules/react-native',:subspecs=>['Core','CxxBridge','DevSupport','RCTText','RCTNetwork','RCTWebSocket','RCTAnimation','RCTImage',]pod'yoga',:path=>'../node_modules/react-native/ReactCommon/yoga'pod'DoubleConversion',:podspec=>'../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'pod'glog',:podspec=>'../node_modules/react-native/third-party-podspecs/glog.podspec'pod'Folly',:podspec=>'../node_modules/react-native/third-party-podspecs/Folly.podspec'pod'Firebase/Core','~> 5.20.2'pod'Firebase/AdMob','~> 5.20.2'pod'Firebase/Messaging','~> 5.20.2'pod'Firebase/RemoteConfig','~> 5.20.2'pod'Firebase/DynamicLinks','~> 5.20.2'pod'BVLinearGradient',:path=>'../node_modules/react-native-linear-gradient'end
Firebase module(s) you're using that has the issue:
Admob
Are you using TypeScript?
N
Think react-native-firebase is great? Please consider supporting all of the project maintainers and contributors by donating via our Open Collective where all contributors can submit expenses. [Learn More]
Thanks - that should be useful, knowing you’ve got one of the three that’s working (with a version) can hopefully let us check exactly what they are doing differently
facebook/react-native#10471
This seems like a react-native bug and is being worked on as far as I can see from the thread above. I was using niftylettuce/react-native-loading-spinner-overlay but will be moving to a custom solution because of this interaction. I guess expo has a custom solution for this so their ads show without problems..
Since it's not really a bug in rn-firebase, I'm closing the issue
Issue
On iOS only, calling
.show()
does not display the loaded rewarded ad.Android works fine.
I have the same behaviour when using
react-native-admob@2.0.0-beta.5
but onexpo-ads-admob@5.0.1
it works great.Using
react-native-firebase@5.5.3
, same behaviour on5.4.3
also.In Xcode I'm getting this warning:
2019-06-25 22:47:41.709477+0300 AppName[11144:66747] Warning: Attempt to present <GADFullScreenAdViewController: 0x7fb0a6fa7010> on <UIViewController: 0x7fb0a4f21630> which is already presenting <RCTModalHostViewController: 0x7fb0a817f650>
Project Files
iOS
Click To Expand
ios/Podfile
:AppDelegate.m
:// N/A
Android
Click To Expand
android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:Firebase
module(s) you're using that has the issue:Admob
TypeScript
?N
Think
react-native-firebase
is great? Please consider supporting all of the project maintainers and contributors by donating via our Open Collective where all contributors can submit expenses. [Learn More]React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: