Status bar showing over Admob Interstitial on iPhone.

Hello. I got a problem with Admob interstitial and iPhone 5. I don’t know if this also happens on other iphones, or it is something exclusive from iOS 7. It does not happen on my iPad 1 that runs iOS 6. App generated using corona Version 2013.1260 because it still uses the old graphics api.

When showing the interstitial, the status bar is added shown over the close button, making almost impossible to close the Ad, even status bar being set to hidden: display.setStatusBar( display.HiddenStatusBar )

[sharedmedia=core:attachments:1247]

any solution, or tweak for this?

I’m also facing the same problem in iOS 7 (iOS 6 bug does not appear, device used 4G iPod Touch). The status bar appears and hide with admob interstitial ads. Tried different daily sdk builds…all showing the same problem. 

I’m also facing the same problem in iOS 7 (iOS 6 bug does not appear, device used 4G iPod Touch). The status bar appears and hide with admob interstitial ads. Tried different daily sdk builds…all showing the same problem. 

  On new builds this line in build.settings :     UIStatusBarHidden = true,  works as  status bar is hidden when splash screen shows.   

But then it shows up again even though main.lua has this line:  display.setStatusBar( display.HiddenStatusBar )

Any comments?

What version of Corona SDK are you using?

If you’re not using 2100 or later, try it there.

Rob

Hi Rob,

I am using 2100.

thanks.

I’m using 2152. 

Has anybody filed a bug report for this? If not, please do so as soon as possible.

Thanks,

Brent

I am doing it right now.

But I don’t want to attach my game files and don’t want to do extra work to build something else, install and test on my iPad.

How do I do without attaching code?

The engineers need a project that demonstrates the problem Luciane.   We don’t want your whole project, but enough code to create the problem, your build.settings and config.lua.  You should be able to do a simple main.lua with your AdMob code and this shouldn’t be too difficult for you to recreate.

Rob

Rob - I am using inneractive with full screen ad but the ad is not showing when the status bar is showing. Inneractive is only initialized.

I think in general it is showing the status bar no matter what only not over the splash screen because of that line in build.settings.

I will see if I can use one of the corona samples to reproduce that. But you guys can do the same.

My build.settings:

settings = 

{

    orientation = 

    {

        default = “landscapeRight”,

        content = “landscapeRight”,

        supported = 

            {

                “landscapeLeft”, 

                “landscapeRight”,

            },

                

    },

    

     plugins =

    {

        – key is the name passed to Lua’s ‘require()’

        [“CoronaProvider.ads.inneractive”] =

        {

            – required

            publisherId = “com.inner-active”,

        },

    }, 

    android =

    {

            versionCode = “10” – for version 1.0

    },

    androidPermissions =

    {

            “android.permission.INTERNET”,

            “android.permission.WRITE_EXTERNAL_STORAGE”, --to save screenshots to photo library

    },

    

    iphone =

    {

        plist =

        {

            CFBundleIconFiles = 

            {

                “Icon.png” , 

                “Icon@2x.png” , 

                “Icon-72.png” , 

                “Icon-Small.png”,

                “Icon-Small@2x.png”,

                “Icon-Small-50.png”,

                “iTunesArtwork”,

            },

            

            UIPrerenderedIcon = true,

            

            UIStatusBarHidden = true,

            

            UIApplicationExitsOnSuspend = true, --forces app to relaunch from start after suspend

            

            CFBundleDisplayName = “my app name”, --sets name under the icon

            

            CFBundleVersion = “1.0”,

                     

        },

        

    },

}

my config.lua is the one you recommend using:

–calculate the aspect ratio of the device

local aspectRatio = display.pixelHeight / display.pixelWidth

application = {

   content = {

      width = aspectRatio > 1.5 and 800 or math.ceil( 1200 / aspectRatio ),

      height = aspectRatio < 1.5 and 1200 or math.ceil( 800 * aspectRatio ),

      scale = “letterBox”,

      fps = 30,

      imageSuffix = {

         ["@2x"] = 1.3,

      },

   },

}

Brent asked that you file a bug report.  You do that with the link at the top of the page “Report a Bug”.  Take the files, including build.settings and config.lua and zip them up and include them as your upload file when you’re ready to submit the bug report.

Thanks

Rob

Rob, I need to correct something I said…

The status bar does not appear UNTIL the first full screen ad appears and when I close the ad the status bar stays visible for the rest of the time.

I think something in the ads.show command is  making the status bar visible again.

I will try to find some time to reproduce in a corona sample game.

Rob, I managed to reproduce the bug with the corona clock sample project by adding the plugin for the ads in build.settings and some code in main to show the ads after 10 seconds.

You will see that until before the ad starts loading the status bar is hidden. Then it appears and stays even after closing the ad.

I will do a bug report right now. 

I also found out that when using banner ad if the banner is not overlapping the status bar the bug doesn’t happen.

Bug report Case 30809

Thanks

Rob, any update on this from the debug team? thanks.

No updates on this yet.

Any updates?

No updates.  Right now we are working to get the next public build out and then the team will get back to their normal bug hunting.

Rob

I understand but this could be fixed for this next public release too.