iOS - Admob
Posted: Fri Apr 20, 2018 2:11 am
Has anyone accomplished how to do this?
I have downloaded the Admob test example from https://github.com/firebase/quickstart- ... ob/testapp.
The example displays the ads perfectly fine.
However, while trying to implement the ads with Irrlicht, it doesn't seem to want to work.
The moment I switch from using the example's AppDelegate class to Irrlicht's CIrrDelegateiOS class, I get the error
I've followed every single page online that talks about how to solve the above error, but nothing works (such as adding NSAllowArbitraryLoads).
I think the problem is that I am using the wrong view (window context) when implementing a banner.
For example,
I modified the Irrlicht source to include the function getIrrlichtView() which returns the dataStorage->View from CIrrDeviceiOS::createViewAndDriver().
If anyone could help me figure out what view to use, or if that's even the issue, I would be forever thankful. This has been bothering me for the past few days.
I've put together an example project if anyone wants the source.
I have downloaded the Admob test example from https://github.com/firebase/quickstart- ... ob/testapp.
The example displays the ads perfectly fine.
However, while trying to implement the ads with Irrlicht, it doesn't seem to want to work.
The moment I switch from using the example's AppDelegate class to Irrlicht's CIrrDelegateiOS class, I get the error
Code: Select all
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
I think the problem is that I am using the wrong view (window context) when implementing a banner.
For example,
Code: Select all
banner->Initialize(getIrrlichtView(), kBannerAdUnit, banner_ad_size);
If anyone could help me figure out what view to use, or if that's even the issue, I would be forever thankful. This has been bothering me for the past few days.
I've put together an example project if anyone wants the source.