[Bug] The interstitial ad shows the status bar

937 views
Skip to first unread message

Taro Yamada

unread,
Jul 1, 2014, 9:58:42 PM7/1/14
to google-adm...@googlegroups.com

When the app's info.plist has the `UIViewControllerBasedStatusBarAppearance` key which value is `NO` and you show a interstitial Ad using the `-presentFromRootViewController:` method of the `GADInterstitial` class,
the status bar is appeared and it hide the close button.

This is a Screen shot of my iPhone 4S.
http://i.imgur.com/G0vZBS6.jpg

I changed the key value to `YES` and currently I am modifying my code due to the bug.

Please fix this bug.
Don't force me to change the code which is unrelated to ads.

Eric Leichtenschlag

unread,
Jul 8, 2014, 7:05:52 PM7/8/14
to google-adm...@googlegroups.com
Which version of the SDK are you using? From the release notes, we added a fix to hide the status bar for interstitials on iOS 7 in SDK version 6.5.1.

Thanks,
Eric

Benjamin Roth

unread,
Sep 5, 2014, 9:02:56 AM9/5/14
to google-adm...@googlegroups.com
This happens until most recent version 6.11


It is really annoying that this Bug persists so long. Come on, you are GOOGLE! If you don't kick the shit, who else does?
I also tried to "code around" that bug but it is not possible without impact on the apps responsiveness.

Thanks,
Benjamin

Eric Leichtenschlag

unread,
Sep 5, 2014, 1:02:42 PM9/5/14
to google-adm...@googlegroups.com
I'm unable to reproduce locally. Can you send over a copy of the interstitial example that exhibits the problem?

Thanks,
Eric

Benjamin Roth

unread,
Sep 5, 2014, 3:24:34 PM9/5/14
to google-adm...@googlegroups.com
What do you want exactly? A screenshot? Or code? Unfortunately the app is quite complex. I can reproduce it every time an interstitial appears.


--

---
You received this message because you are subscribed to a topic in the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/lteQ_UYv_v8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Benjamin Roth
Prokurist

Jaumo GmbH · www.jaumo.com
Wehrstraße 46 · 73035 Göppingen · Germany
Phone +49 7161 304880-6 · Fax +49 7161 304880-1
AG Ulm · HRB 731058 · Managing Director: Jens Kammerer

Eric Leichtenschlag

unread,
Sep 5, 2014, 4:58:16 PM9/5/14
to google-adm...@googlegroups.com
I attached an example I'm testing with where I can't reproduce the issue. Can you break this example and send it back?
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
InterstitialExample.zip

Benjamin Roth

unread,
Sep 5, 2014, 4:59:47 PM9/5/14
to google-adm...@googlegroups.com

In monday :) thanks so far!

To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.

Eric Leichtenschlag

unread,
Sep 5, 2014, 7:38:12 PM9/5/14
to google-adm...@googlegroups.com
I was actually able to reproduce this issue running Xcode 6 beta, and an iOS 7.0 simulator, and only that combination (Xcode 5/iOS 7.0 or Xcode6/iOS7.1 didn't exhibit the issue). After some debugging, it looks like the OS never called prefersStatusBarHidden when the view controller is shown, so the SDK never got a chance to return yes. I don't have a 7.0 device on hand to see if it happened on device. From the information I have, it looks like an Xcode 6 beta bug or 7.0 simulator issue.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Benjamin Roth
Prokurist

Jaumo GmbH · www.jaumo.com
Wehrstraße 46 · 73035 Göppingen · Germany
Phone +49 7161 304880-6 · Fax +49 7161 304880-1
AG Ulm · HRB 731058 · Managing Director: Jens Kammerer

Benjamin Roth

unread,
Sep 6, 2014, 4:26:42 AM9/6/14
to google-adm...@googlegroups.com
Hmmm. I have also have this with xcode5 and an ios 7.1 device.
As you mention "prefersStatusBarHidden ": I have an idea but i have to test first. We call the interstitial not from the root VC. We have a slide menu (PKRevealController) and so the interstitial is called from a child VC initialized with this child VC as root VC.
I will test it - but not today - and will let you know!


To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Benjamin Roth

unread,
Sep 8, 2014, 8:12:04 AM9/8/14
to google-adm...@googlegroups.com
Hi Eric,

Thanks for your efforts.
I tested and tried and what came out is that it does not work with UIViewControllerBasedStatusBarAppearance disabled.
I gave it yet another try to get rid of this setting and finally succeeded, however this automagic IOS stuff is kinda obscure!

What i can say now is: It now works for me but the error with "UIViewControllerBasedStatusBarAppearance" turned off still persists. Btw. in this case IOS does not ask VCs for "prefersStatusBarHidden".

Thanks anyway!
Benjamin

To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Eric Leichtenschlag

unread,
Sep 8, 2014, 2:49:46 PM9/8/14
to google-adm...@googlegroups.com
Cool, glad you figured it out!
Reply all
Reply to author
Forward
0 new messages