I’ve been struggling to get AdWhirl working right on my Unity built app. I think the problem boils down to the fact that Unity builds an OpenGLES project, while adwhirl relies on having a UIWindow.
So, I’ve added a UIWindow to the build and create the ARRollerView as a subview of the window, then make the window.hidden = no; This gets the ad to show up fine with the following problems.
- If I create the UIWindow to be 320x480 it fills the whole screen and keeps me from being able to access the buttons and objects in the OpenGLES view below it. But the ad shows up fine, and if I click on the ad they work fine, but my app can’t work because of blocking the buttons.
- If I create the UIWindow to be 320x48 (so it’s only the size of the ad), again the ad shows up fine, and the buttons on my OpenGLES view are accessible and work. But, if I tap the ad to open it, it crashes my app (because the ad tries to create an UIWebView within the app it crashes the app because the UIWindow is too small I think.)
Does anyone know what I can do to keep it from crashing when it tries to create a UIWebView but the window is set to 320x48.
Or maybe someone knows how to make the OpenGLES view accessible through a UIWindow of 320x480?