Hi. We are trying to display Admob banners center/bottom in landscape on iOS. They display correctly on an iPhone 4 running iOS 7 but on my iPad running iOS 9 they are displaying as if the dimensions taken are in portrait (We experimented with setting them left/center and they are displaying 2/3 of the way down the screen and center/top they are shifted to the left a bit). They're fine on Android. The Gideros project is set to letterbox landscape left and xcode is set to landscape left and landscape right.
I've tried both the 7.5.2 and 7.8.1 versions of the GoogleMobileAds framework, which work fine in our other app in portrait. Xcode never seems to like the one bundled with Gideros for some reason.
Have you got any ideas how we can solve this? Many thanks in advance.
Comments
+(BOOL)isPortrait{
return NO;
}
and gdr_initialize(..., false) in AppDelegate.m as in these instructions in an old thread.
I even swapped around some of the height and width values in setAlignment in AdsClass.mm, which fixed it for the iPad (iOS 9.3.2) but broke it for the old iPhone 4 running iOS 7.
Please can you help @ar2rsawseen ? There's definitely something strange going on with how the orientations are being reported on different iOS devices.
Likes: antix, simwhi
That is how coding works
Will try to add it to Ads interface
Likes: NatWobble