Interstitial wrong orientation on iOS7

160 views
Skip to first unread message

Евгений Федосеев

unread,
Jan 7, 2017, 2:36:56 PM1/7/17
to Google Mobile Ads SDK Developers
Hi there!

We have iOS game (landscape oriented only) + latest AdMob iOS SDK 7.16.0 (without Firebase)
We show interstitials and everything works fine except iOS7 devices.

On iOS7 we always get portrait oriented interstitial and don't see close button:


When we add device to see test ads - portrait oriented test ad shows, then it rotates to landscape in a second:


Same behaviour in InterstitialExample on iOS7 devices only:




Do you still support iOS7 devices? Could you please help with this problems?

Thanks in advance!

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jan 9, 2017, 10:58:42 AM1/9/17
to Google Mobile Ads SDK Developers
Hi Евгений,

I'm having trouble reproducing this issue. Can you confirm the Xcode version? Have you tried to reproduce using our sample apps on an actual device?

Thanks,
Arjun Busani
Mobile Ads SDK Team

Евгений Федосеев

unread,
Jan 10, 2017, 5:41:16 AM1/10/17
to Google Mobile Ads SDK Developers
Hi Arjun!

I have:

xCode Version 8.2.1 (8C1002)
macOS Sierra 10.12.2

Steps to reproduce the issue with InterstitialExample:

2. press green button -> Download ZIP
3. Unzip archive and copy Objective-C/admob/InterstitialExample on Desktop
4. commands in terminal:
           cd /Users/fedoseev/Desktop/InterstitialExample 
      pod update
5. wait in terminal for success update message:
           CocoaPods 1.2.0.beta.3 is available.

To update use: `sudo gem install cocoapods --pre`

[!] This is a test version we'd love you to try.


For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.2.0.beta.3


Analyzing dependencies

Downloading dependencies

Installing Firebase (3.11.0)

Installing FirebaseAnalytics (3.6.0)

Installing FirebaseCore (3.4.6)

Installing FirebaseInstanceID (1.0.8)

Installing Google-Mobile-Ads-SDK (7.16.0)

Installing GoogleInterchangeUtilities (1.2.2)

Installing GoogleSymbolUtilities (1.1.2)

Installing GoogleToolboxForMac (2.1.0)

Generating Pods project

Integrating client project


[!] Please close any current Xcode sessions and use `InterstitialExample.xcworkspace` for this project from now on.

Sending stats

Pod installation complete! There are 2 dependencies from the Podfile and 8 total pods installed. 
6. Open /Users/fedoseev/Desktop/InterstitialExample/InterstitialExample.xcworkspace in xCode
7. Choose your Team and type by keyboard 7.0 in Deployment target field:

thats the only changes I've made to be able to build and upload it on my iPhone 4 (A1332 model with iOS 7.1.2 (11D257)

8. in xCode press Product->Archive menu->Export->Save for Development deployment->Next->Next->Next (all setting by default)->Export

9. Install InterstitialExample.ipa we get file via iTunes on iPhone 4

10. each time iPhone is in landscape orientation you will get test ad in portrait for 1 sec, then it will rotate to landscape.

     btw, if you will keep device in portrait then test ad will be shown in portrait as it should without any rotations



понедельник, 9 января 2017 г., 18:58:42 UTC+3 пользователь Veer Arjun Busani(Mobile Ads SDK Team) написал:

Евгений Федосеев

unread,
Jan 10, 2017, 5:45:54 AM1/10/17
to Google Mobile Ads SDK Developers
My partners get this issue on iPad mini 2 iOS 7.1 so seems its not a problem of particular device.

Eric Leichtenschlag (Mobile Ads SDK Team)

unread,
Jan 13, 2017, 2:14:41 PM1/13/17
to Google Mobile Ads SDK Developers
Hi Евгений,

Can you confirm if the devices that experience the issue are locked to portrait in your device settings? I have a strong hunch that's part of the reason you're seeing this.

The first screenshot is obviously no good and I will investigate that issue some more.

Thanks,
Eric

Евгений Федосеев

unread,
Jan 17, 2017, 5:22:00 AM1/17/17
to Google Mobile Ads SDK Developers
Hi Eric!

The issue I described before was without device orientation lock.

If I lock device orientation then the app works in portrait only, so we see portrait ads only, without any rotation bug.

Ev

пятница, 13 января 2017 г., 22:14:41 UTC+3 пользователь Eric Leichtenschlag (Mobile Ads SDK Team) написал:

Eric Leichtenschlag (Mobile Ads SDK Team)

unread,
Jan 20, 2017, 9:00:36 PM1/20/17
to Google Mobile Ads SDK Developers
Hi Ev,

I was able to get a hold of an iOS 7 device and try this out. I'm getting the behavior where the ad shows up in the wrong orientation on iOS 7 for 1 second, and then corrects itself, but I'm getting that for live AdMob ads too. I still owe you an answer as to what's going on there -- my hunch is it's an iOS 7 specific bug.

As for the first screenshot you have, that doesn't look much like an AdMob ad. Are you using AdMob mediation and getting ads from other ad networks?
1. If yes, then you'll want to figure out which ad network is serving that interstitial, which you can find out from checking interstitial.adNetworkClassName once the ad loads, and reach out to that ad network's support site to have them debug this issue for their ads.
2. If you're not mediating and you're sure this ad is coming from AdMob, then it would help if you could use Charles Proxy to capture which ad is returning so that we can try to reproduce with the same ad.

Hope this helps,
Eric
Reply all
Reply to author
Forward
0 new messages