Black Screen when Airplane Mode On

Hi, I’ve found and issue, don’t know where to put it.

Every time my iPad is in Airplane mode, the application run the splash screen ( video playback ) and the next scene it render in black.

If I turn off the Airplane mode an connect to Internet, the application runs fine.

I don’t have any call to the network api or the apple store, the scene only places an image as background.

I’m using the Corona Version 2013.2100 (2013.12.7)

This only happens shen I run it on the Device, works fine in the simulator.

This i the code i’m using

local storyFactory=require “system.library.storyFactory”

return storyFactory:createScene({

    prev="",

    next=“view.librero”,

    actual=“view.portada”,

    background=“assets/backgrounds/view/main.png”,

    scene={

        create=createScene,

        exit=exitScene

    }

})

An the storyFactory file is attached.

Thank You.

My advice is to look at your device’s console log and see if you’re getting any errors.  If you don’t know how to do that, read this tutorial:

http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

Rob

Thank for the answer, but there’s no errors.

After more tests I’ve confirmed that the app is doing this only if it is not connected to an Internet Netwook, the only API which I’m using and needs Internet is the store, but as you can see It is never called, at least not in that scene.

Thank for the answer Rob, but there’s no errors.

After more tests I’ve confirmed that the app is doing this only if it is not connected to an Internet Netwook, the only API which I’m using and needs Internet is the store, but as you can see It is never called, at least not in that scene.

There should be something in the console log that you can see when your iPad is tethered in and you’re using Xcode’s organizer.

It’s possible that there are other background things like analytics trying to make calls, but it shouldn’t crash your app.  I just took one of my apps and put the phone in airplane mode and I didn’t get a black screen.  You can try adding:

launchPad = false,

to your config.lua:

application = {

     launchPad = false,

     content = {

         width = 320,

         height = 480,

         – etc.

     }

}

and see if that helps. 

The problem is gone, I remade the whole proyect, adding file by file and testing every single scene individually. I also renamed some of my files and variables.

I don’t really know what the problem was, but now it’s working fine.

Thanks for the support Rob  :slight_smile:

My advice is to look at your device’s console log and see if you’re getting any errors.  If you don’t know how to do that, read this tutorial:

http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

Rob

Thank for the answer, but there’s no errors.

After more tests I’ve confirmed that the app is doing this only if it is not connected to an Internet Netwook, the only API which I’m using and needs Internet is the store, but as you can see It is never called, at least not in that scene.

Thank for the answer Rob, but there’s no errors.

After more tests I’ve confirmed that the app is doing this only if it is not connected to an Internet Netwook, the only API which I’m using and needs Internet is the store, but as you can see It is never called, at least not in that scene.

There should be something in the console log that you can see when your iPad is tethered in and you’re using Xcode’s organizer.

It’s possible that there are other background things like analytics trying to make calls, but it shouldn’t crash your app.  I just took one of my apps and put the phone in airplane mode and I didn’t get a black screen.  You can try adding:

launchPad = false,

to your config.lua:

application = {

     launchPad = false,

     content = {

         width = 320,

         height = 480,

         – etc.

     }

}

and see if that helps. 

The problem is gone, I remade the whole proyect, adding file by file and testing every single scene individually. I also renamed some of my files and variables.

I don’t really know what the problem was, but now it’s working fine.

Thanks for the support Rob  :slight_smile: